1 | /******************************************************************************* |
2 | * Copyright 2020-2022 Intel Corporation |
3 | * |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | * you may not use this file except in compliance with the License. |
6 | * You may obtain a copy of the License at |
7 | * |
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | * |
10 | * Unless required by applicable law or agreed to in writing, software |
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. |
15 | *******************************************************************************/ |
16 | |
17 | #include "dnnl_common.hpp" |
18 | |
19 | #include "zeropad/zeropad.hpp" |
20 | |
21 | namespace zeropad { |
22 | |
23 | std::ostream &operator<<(std::ostream &s, const prb_t &prb) { |
24 | dump_global_params(s); |
25 | settings_t def; |
26 | |
27 | if (canonical || prb.dt != def.dt[0]) s << "--dt=" << prb.dt << " " ; |
28 | if (canonical || prb.tag != def.tag[0]) s << "--tag=" << prb.tag << " " ; |
29 | |
30 | s << static_cast<prb_dims_t>(prb); |
31 | |
32 | return s; |
33 | } |
34 | |
35 | } // namespace zeropad |
36 | |