1 /** 2 * Copyright 2021 Huawei Technologies Co., Ltd 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 #ifndef MINDSPORE_LITE_MICRO_CODER_OPCODERS_SERIALIZERS_NNACL_STREAM_UTILS_H_ 18 #define MINDSPORE_LITE_MICRO_CODER_OPCODERS_SERIALIZERS_NNACL_STREAM_UTILS_H_ 19 #include <sstream> 20 #include <string> 21 #include "nnacl/op_base.h" 22 #include "nnacl/pooling_parameter.h" 23 #include "nnacl/slice_parameter.h" 24 #include "nnacl/softmax_parameter.h" 25 #include "nnacl/int8/add_int8.h" 26 #include "nnacl/int8/quantize.h" 27 28 namespace mindspore::lite::micro { 29 30 std::ostream &operator<<(std::ostream &code, const ::QuantArg &quant_arg); 31 32 std::ostream &operator<<(std::ostream &code, const OpParameter &tile); 33 34 std::ostream &operator<<(std::ostream &code, const AddQuantQrgs &args); 35 36 std::ostream &operator<<(std::ostream &code, const SliceQuantArg &arg); 37 38 std::ostream &operator<<(std::ostream &code, PoolMode pool_mode); 39 40 std::ostream &operator<<(std::ostream &code, RoundMode round_mode); 41 42 std::ostream &operator<<(std::ostream &code, RoundingMode rounding_mode); 43 44 std::ostream &operator<<(std::ostream &code, PadMode pad_mode); 45 46 std::ostream &operator<<(std::ostream &code, ActType act_type); 47 48 std::ostream &operator<<(std::ostream &code, DataOrder data_order); 49 } // namespace mindspore::lite::micro 50 #endif // MINDSPORE_LITE_MICRO_CODER_OPCODERS_SERIALIZERS_NNACL_STREAM_UTILS_H_ 51