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 | #include "dnnl_debug.hpp" |
19 | |
20 | #include "prelu/prelu.hpp" |
21 | |
22 | namespace prelu { |
23 | |
24 | std::ostream &operator<<(std::ostream &s, const prb_t &prb) { |
25 | using ::operator<<; |
26 | |
27 | dump_global_params(s); |
28 | settings_t def; |
29 | |
30 | if (canonical || prb.dir != def.dir[0]) s << "--dir=" << prb.dir << " " ; |
31 | if (canonical || prb.sdt != def.sdt[0]) s << "--sdt=" << prb.sdt << " " ; |
32 | if (canonical || prb.stag != def.stag[0]) s << "--stag=" << prb.stag << " " ; |
33 | |
34 | s << prb.attr; |
35 | if (canonical || prb.ctx_init != def.ctx_init[0]) |
36 | s << "--ctx-init=" << prb.ctx_init << " " ; |
37 | if (canonical || prb.ctx_exe != def.ctx_exe[0]) |
38 | s << "--ctx-exe=" << prb.ctx_exe << " " ; |
39 | |
40 | s << static_cast<prb_vdims_t>(prb); |
41 | |
42 | return s; |
43 | } |
44 | |
45 | } // namespace prelu |
46 | |