2 * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include "OpPrinter.h"
19 #include <mio_circle/Helper.h>
23 #include <flatbuffers/flexbuffers.h>
25 using std::make_unique;
30 // TODO move to some header
31 std::ostream &operator<<(std::ostream &os, const std::vector<int32_t> &vect);
33 // TODO Re-arrange in alphabetical order
35 class AddPrinter : public OpPrinter
38 void options(const circle::Operator *op, std::ostream &os) const override
40 if (auto *params = op->builtin_options_as_AddOptions())
43 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
50 class ArgMaxPrinter : public OpPrinter
53 void options(const circle::Operator *op, std::ostream &os) const override
55 if (auto *params = op->builtin_options_as_ArgMaxOptions())
58 os << "OutputType(" << EnumNameTensorType(params->output_type()) << ") ";
64 class ArgMinPrinter : public OpPrinter
67 void options(const circle::Operator *op, std::ostream &os) const override
69 if (auto *params = op->builtin_options_as_ArgMinOptions())
72 os << "OutputType(" << EnumNameTensorType(params->output_type()) << ") ";
78 class BatchMatMulPrinter : public OpPrinter
81 void options(const circle::Operator *op, std::ostream &os) const override
83 if (auto *params = op->builtin_options_as_BatchMatMulOptions())
87 os << "adjoint_lhs(" << params->adjoint_lhs() << ") ";
88 os << "adjoint_rhs(" << params->adjoint_rhs() << ") ";
89 os << std::noboolalpha;
95 class BidirectionalSequenceLSTMPrinter : public OpPrinter
98 void options(const circle::Operator *op, std::ostream &os) const override
100 if (auto *params = op->builtin_options_as_BidirectionalSequenceLSTMOptions())
103 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
105 os << "cell_clip(" << params->cell_clip() << ") ";
106 os << "proj_clip(" << params->proj_clip() << ") ";
107 os << "time_major(" << params->time_major() << ") ";
108 os << "asymmetric_quantize_inputs(" << params->asymmetric_quantize_inputs() << ") ";
109 os << "merge_outputs(" << params->merge_outputs() << ") ";
115 class CastPrinter : public OpPrinter
118 void options(const circle::Operator *op, std::ostream &os) const override
120 if (auto cast_params = op->builtin_options_as_CastOptions())
123 os << "in_data_type(" << circle::EnumNameTensorType(cast_params->in_data_type()) << ") ";
124 os << "out_data_type(" << circle::EnumNameTensorType(cast_params->out_data_type()) << ") ";
130 class Conv2DPrinter : public OpPrinter
133 void options(const circle::Operator *op, std::ostream &os) const override
135 if (auto conv_params = op->builtin_options_as_Conv2DOptions())
138 os << "Padding(" << conv_params->padding() << ") ";
139 os << "Stride.W(" << conv_params->stride_w() << ") ";
140 os << "Stride.H(" << conv_params->stride_h() << ") ";
141 os << "Dilation.W(" << conv_params->dilation_w_factor() << ") ";
142 os << "Dilation.H(" << conv_params->dilation_h_factor() << ") ";
144 << EnumNameActivationFunctionType(conv_params->fused_activation_function()) << ")";
150 class DepthToSpacePrinter : public OpPrinter
153 void options(const circle::Operator *op, std::ostream &os) const override
155 if (auto *std_params = op->builtin_options_as_DepthToSpaceOptions())
158 os << "BlockSize(" << std_params->block_size() << ")";
164 class DivPrinter : public OpPrinter
167 void options(const circle::Operator *op, std::ostream &os) const override
169 if (auto *params = op->builtin_options_as_DivOptions())
172 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
179 class Pool2DPrinter : public OpPrinter
182 void options(const circle::Operator *op, std::ostream &os) const override
184 if (auto pool_params = op->builtin_options_as_Pool2DOptions())
187 os << "Padding(" << pool_params->padding() << ") ";
188 os << "Stride.W(" << pool_params->stride_w() << ") ";
189 os << "Stride.H(" << pool_params->stride_h() << ") ";
190 os << "Filter.W(" << pool_params->filter_width() << ") ";
191 os << "Filter.H(" << pool_params->filter_height() << ") ";
193 << EnumNameActivationFunctionType(pool_params->fused_activation_function()) << ")";
199 class ConcatenationPrinter : public OpPrinter
202 void options(const circle::Operator *op, std::ostream &os) const override
204 if (auto *concatenation_params = op->builtin_options_as_ConcatenationOptions())
208 << EnumNameActivationFunctionType(concatenation_params->fused_activation_function())
210 os << "Axis(" << concatenation_params->axis() << ")";
216 class ReducerPrinter : public OpPrinter
219 void options(const circle::Operator *op, std::ostream &os) const override
221 if (auto reducer_params = op->builtin_options_as_ReducerOptions())
224 os << "keep_dims(" << reducer_params->keep_dims() << ") ";
230 class ReshapePrinter : public OpPrinter
233 void options(const circle::Operator *op, std::ostream &os) const override
235 if (auto *reshape_params = op->builtin_options_as_ReshapeOptions())
237 auto new_shape = mio::circle::as_index_vector(reshape_params->new_shape());
239 os << "NewShape(" << new_shape << ")";
245 class ResizeBilinearPrinter : public OpPrinter
248 void options(const circle::Operator *op, std::ostream &os) const override
250 if (auto *resize_params = op->builtin_options_as_ResizeBilinearOptions())
253 os << std::boolalpha;
254 os << "align_corners(" << resize_params->align_corners() << ")";
255 os << "half_pixel_centers(" << resize_params->half_pixel_centers() << ")";
256 os << std::noboolalpha;
262 class ResizeNearestNeighborPrinter : public OpPrinter
265 void options(const circle::Operator *op, std::ostream &os) const override
267 if (auto *resize_params = op->builtin_options_as_ResizeNearestNeighborOptions())
270 os << std::boolalpha;
271 os << "align_corners(" << resize_params->align_corners() << ")";
272 os << std::noboolalpha;
278 class ReverseSequencePrinter : public OpPrinter
281 void options(const circle::Operator *op, std::ostream &os) const override
283 if (auto *params = op->builtin_options_as_ReverseSequenceOptions())
286 os << "seq_dim(" << params->seq_dim() << ") ";
287 os << "batch_dim(" << params->batch_dim() << ") ";
293 class DepthwiseConv2DPrinter : public OpPrinter
296 void options(const circle::Operator *op, std::ostream &os) const override
298 if (auto conv_params = op->builtin_options_as_DepthwiseConv2DOptions())
301 os << "Padding(" << conv_params->padding() << ") ";
302 os << "Stride.W(" << conv_params->stride_w() << ") ";
303 os << "Stride.H(" << conv_params->stride_h() << ") ";
304 os << "DepthMultiplier(" << conv_params->depth_multiplier() << ") ";
305 os << "Dilation.W(" << conv_params->dilation_w_factor() << ") ";
306 os << "Dilation.H(" << conv_params->dilation_h_factor() << ") ";
308 << EnumNameActivationFunctionType(conv_params->fused_activation_function()) << ") ";
314 class FakeQuantPrinter : public OpPrinter
317 void options(const circle::Operator *op, std::ostream &os) const override
319 if (auto *params = op->builtin_options_as_FakeQuantOptions())
322 os << "Min(" << params->min() << ") ";
323 os << "Max(" << params->max() << ") ";
324 os << "NumBits(" << params->num_bits() << ") ";
325 os << std::boolalpha;
326 os << "NarrowRange(" << params->narrow_range() << ") ";
327 os << std::noboolalpha;
333 class FullyConnectedPrinter : public OpPrinter
336 void options(const circle::Operator *op, std::ostream &os) const override
338 if (auto *params = op->builtin_options_as_FullyConnectedOptions())
341 os << "WeightFormat(" << EnumNameFullyConnectedOptionsWeightsFormat(params->weights_format())
343 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
345 os << "keep_num_dims(" << params->keep_num_dims() << ") ";
352 class GatherPrinter : public OpPrinter
355 void options(const circle::Operator *op, std::ostream &os) const override
357 if (auto *params = op->builtin_options_as_GatherOptions())
360 os << "Axis(" << params->axis() << ") ";
367 class IfPrinter : public OpPrinter
370 void options(const circle::Operator *op, std::ostream &os) const override
372 if (auto *params = op->builtin_options_as_IfOptions())
375 os << "then_subgraph_index(" << params->then_subgraph_index() << ") ";
376 os << "else_subgraph_index(" << params->else_subgraph_index() << ") ";
382 class L2NormPrinter : public OpPrinter
385 void options(const circle::Operator *op, std::ostream &os) const override
387 if (auto *params = op->builtin_options_as_L2NormOptions())
390 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
397 class LeakyReluPrinter : public OpPrinter
400 void options(const circle::Operator *op, std::ostream &os) const override
402 if (auto *params = op->builtin_options_as_LeakyReluOptions())
405 os << "alpha(" << params->alpha() << ") ";
410 class LocalResponseNormalizationPrinter : public OpPrinter
413 void options(const circle::Operator *op, std::ostream &os) const override
415 if (auto *params = op->builtin_options_as_LocalResponseNormalizationOptions())
418 os << "radius(" << params->radius() << ") ";
419 os << "bias(" << params->bias() << ") ";
420 os << "alpha(" << params->alpha() << ") ";
421 os << "beta(" << params->beta() << ") ";
427 class MirrorPadPrinter : public OpPrinter
430 void options(const circle::Operator *op, std::ostream &os) const override
432 if (auto *params = op->builtin_options_as_MirrorPadOptions())
435 os << "mode(" << EnumNameMirrorPadMode(params->mode()) << ") ";
441 class MulPrinter : public OpPrinter
444 void options(const circle::Operator *op, std::ostream &os) const override
446 if (auto *params = op->builtin_options_as_MulOptions())
449 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
456 class OneHotPrinter : public OpPrinter
459 void options(const circle::Operator *op, std::ostream &os) const override
461 if (auto *params = op->builtin_options_as_OneHotOptions())
464 os << "Axis(" << params->axis() << ") ";
471 class PackPrinter : public OpPrinter
474 void options(const circle::Operator *op, std::ostream &os) const override
476 if (auto *params = op->builtin_options_as_PackOptions())
479 os << "ValuesCount(" << params->values_count() << ") ";
480 os << "Axis(" << params->axis() << ") ";
486 class ShapePrinter : public OpPrinter
489 void options(const circle::Operator *op, std::ostream &os) const override
491 if (auto *params = op->builtin_options_as_ShapeOptions())
494 os << "out_type(" << EnumNameTensorType(params->out_type()) << ") ";
500 class SoftmaxPrinter : public OpPrinter
503 void options(const circle::Operator *op, std::ostream &os) const override
505 if (auto *softmax_params = op->builtin_options_as_SoftmaxOptions())
508 os << "Beta(" << softmax_params->beta() << ")";
514 class SpaceToDepthPrinter : public OpPrinter
517 void options(const circle::Operator *op, std::ostream &os) const override
519 if (auto *std_params = op->builtin_options_as_SpaceToDepthOptions())
522 os << "BlockSize(" << std_params->block_size() << ")";
528 class SparseToDensePrinter : public OpPrinter
531 void options(const circle::Operator *op, std::ostream &os) const override
533 if (auto *std_params = op->builtin_options_as_SparseToDenseOptions())
536 os << "ValidateIndices(" << std_params->validate_indices() << ")";
542 class SplitPrinter : public OpPrinter
545 void options(const circle::Operator *op, std::ostream &os) const override
547 if (auto *params = op->builtin_options_as_SplitOptions())
550 os << "num_splits(" << params->num_splits() << ") ";
556 class SplitVPrinter : public OpPrinter
559 void options(const circle::Operator *op, std::ostream &os) const override
561 if (auto *params = op->builtin_options_as_SplitVOptions())
564 os << "num_splits(" << params->num_splits() << ") ";
570 class SqueezePrinter : public OpPrinter
573 void options(const circle::Operator *op, std::ostream &os) const override
575 if (auto *params = op->builtin_options_as_SqueezeOptions())
578 os << "SqueezeDims(";
579 for (int i = 0; i < params->squeeze_dims()->size(); ++i)
583 os << params->squeeze_dims()->Get(i);
591 class StridedSlicePrinter : public OpPrinter
594 void options(const circle::Operator *op, std::ostream &os) const override
596 if (auto *strided_slice_params = op->builtin_options_as_StridedSliceOptions())
599 os << "begin_mask(" << strided_slice_params->begin_mask() << ") ";
600 os << "end_mask(" << strided_slice_params->end_mask() << ") ";
601 os << "ellipsis_mask(" << strided_slice_params->ellipsis_mask() << ") ";
602 os << "new_axis_mask(" << strided_slice_params->new_axis_mask() << ") ";
603 os << "shrink_axis_mask(" << strided_slice_params->shrink_axis_mask() << ") ";
609 class SubPrinter : public OpPrinter
612 void options(const circle::Operator *op, std::ostream &os) const override
614 if (auto *params = op->builtin_options_as_SubOptions())
617 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
624 class SVDFPrinter : public OpPrinter
627 void options(const circle::Operator *op, std::ostream &os) const override
629 if (auto *params = op->builtin_options_as_SVDFOptions())
632 os << "rank(" << params->rank() << ") ";
633 os << "activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
635 os << "asymmetric_quantize_inputs(" << params->asymmetric_quantize_inputs() << ") ";
641 class TransposeConvPrinter : public OpPrinter
644 void options(const circle::Operator *op, std::ostream &os) const override
646 if (auto conv_params = op->builtin_options_as_TransposeConvOptions())
649 os << "Padding(" << conv_params->padding() << ") ";
650 os << "Stride.W(" << conv_params->stride_w() << ") ";
651 os << "Stride.H(" << conv_params->stride_h() << ") ";
657 class UnidirectionalSequenceLSTMPrinter : public OpPrinter
660 void options(const circle::Operator *op, std::ostream &os) const override
662 if (auto *params = op->builtin_options_as_UnidirectionalSequenceLSTMOptions())
665 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
667 os << "cell_clip(" << params->cell_clip() << ") ";
668 os << "proj_clip(" << params->proj_clip() << ") ";
669 os << "time_major(" << params->time_major() << ") ";
670 os << "asymmetric_quantize_inputs(" << params->asymmetric_quantize_inputs() << ") ";
676 class UniquePrinter : public OpPrinter
679 void options(const circle::Operator *op, std::ostream &os) const override
681 if (auto *params = op->builtin_options_as_UniqueOptions())
684 os << "idx_out_type(" << EnumNameTensorType(params->idx_out_type()) << ") ";
690 class WhilePrinter : public OpPrinter
693 void options(const circle::Operator *op, std::ostream &os) const override
695 if (auto *params = op->builtin_options_as_WhileOptions())
698 os << "cond_subgraph_index(" << params->cond_subgraph_index() << ") ";
699 os << "body_subgraph_index(" << params->body_subgraph_index() << ") ";
705 class CustomOpPrinter : public OpPrinter
708 void options(const circle::Operator *op, std::ostream &os) const override
710 if (op->custom_options_format() != circle::CustomOptionsFormat::CustomOptionsFormat_FLEXBUFFERS)
713 os << "Unknown custom option format";
717 const flatbuffers::Vector<uint8_t> *option_buf = op->custom_options();
719 if (option_buf == nullptr || option_buf->size() == 0)
721 os << "No attrs found." << std::endl;
726 // attrs of custom ops are encoded in flexbuffer format
727 auto attr_map = flexbuffers::GetRoot(option_buf->data(), option_buf->size()).AsMap();
730 auto keys = attr_map.Keys();
731 for (int i = 0; i < keys.size(); i++)
733 auto key = keys[i].ToString();
734 os << key << "(" << attr_map[key].ToString() << ") ";
737 // Note: attr in "Shape" type does not seem to be converted by circle_convert.
738 // When the converted circle file (with custom op) is opened with hexa editory,
739 // attrs names can be found but attr name in "Shape" type is not found.
745 class BCQFullyConnectedPrinter : public OpPrinter
748 void options(const circle::Operator *op, std::ostream &os) const override
750 if (auto *params = op->builtin_options_as_BCQFullyConnectedOptions())
753 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
755 os << "weights_hidden_size(" << params->weights_hidden_size() << ") ";
761 class BCQGatherPrinter : public OpPrinter
764 void options(const circle::Operator *op, std::ostream &os) const override
766 if (auto *params = op->builtin_options_as_BCQGatherOptions())
769 os << "axis(" << params->axis() << ") ";
770 os << "weights_hidden_size(" << params->input_hidden_size() << ") ";
776 class InstanceNormPrinter : public OpPrinter
779 void options(const circle::Operator *op, std::ostream &os) const override
781 if (auto *params = op->builtin_options_as_InstanceNormOptions())
784 os << "epsilon(" << params->epsilon() << ") ";
785 os << "Activation(" << EnumNameActivationFunctionType(params->fused_activation_function())
792 OpPrinterRegistry::OpPrinterRegistry()
794 _op_map[circle::BuiltinOperator_ADD] = make_unique<AddPrinter>();
795 // There is no Option for ADD_N
796 _op_map[circle::BuiltinOperator_ARG_MAX] = make_unique<ArgMaxPrinter>();
797 _op_map[circle::BuiltinOperator_ARG_MIN] = make_unique<ArgMinPrinter>();
798 _op_map[circle::BuiltinOperator_AVERAGE_POOL_2D] = make_unique<Pool2DPrinter>();
799 _op_map[circle::BuiltinOperator_BATCH_MATMUL] = make_unique<BatchMatMulPrinter>();
800 _op_map[circle::BuiltinOperator_BIDIRECTIONAL_SEQUENCE_LSTM] =
801 make_unique<BidirectionalSequenceLSTMPrinter>();
802 _op_map[circle::BuiltinOperator_CAST] = make_unique<CastPrinter>();
803 // There is no Option for CEIL
804 _op_map[circle::BuiltinOperator_CONCATENATION] = make_unique<ConcatenationPrinter>();
805 _op_map[circle::BuiltinOperator_CONV_2D] = make_unique<Conv2DPrinter>();
806 // There is no Option for DENSIFY
807 _op_map[circle::BuiltinOperator_DEPTH_TO_SPACE] = make_unique<DepthToSpacePrinter>();
808 _op_map[circle::BuiltinOperator_DEPTHWISE_CONV_2D] = make_unique<DepthwiseConv2DPrinter>();
809 // There is no Option for DEQUANTIZE
810 _op_map[circle::BuiltinOperator_DIV] = make_unique<DivPrinter>();
811 _op_map[circle::BuiltinOperator_FAKE_QUANT] = make_unique<FakeQuantPrinter>();
812 // There is no Option for FLOOR
813 // There is no Option for FLOOR_MOD
814 _op_map[circle::BuiltinOperator_FULLY_CONNECTED] = make_unique<FullyConnectedPrinter>();
815 _op_map[circle::BuiltinOperator_GATHER] = make_unique<GatherPrinter>();
816 _op_map[circle::BuiltinOperator_IF] = make_unique<IfPrinter>();
817 _op_map[circle::BuiltinOperator_L2_NORMALIZATION] = make_unique<L2NormPrinter>();
818 _op_map[circle::BuiltinOperator_L2_POOL_2D] = make_unique<Pool2DPrinter>();
819 _op_map[circle::BuiltinOperator_LEAKY_RELU] = make_unique<LeakyReluPrinter>();
820 _op_map[circle::BuiltinOperator_LOCAL_RESPONSE_NORMALIZATION] =
821 make_unique<LocalResponseNormalizationPrinter>();
822 // There is no Option for LOG
823 // There is no Option for LOGISTIC
824 // There is no Option for LOG_SOFTMAX
825 _op_map[circle::BuiltinOperator_MAX_POOL_2D] = make_unique<Pool2DPrinter>();
826 _op_map[circle::BuiltinOperator_MIRROR_PAD] = make_unique<MirrorPadPrinter>();
827 _op_map[circle::BuiltinOperator_MUL] = make_unique<MulPrinter>();
828 // There is no Option for NON_MAX_SUPPRESSION_V4
829 // There is no Option for NON_MAX_SUPPRESSION_V5
830 _op_map[circle::BuiltinOperator_ONE_HOT] = make_unique<OneHotPrinter>();
831 _op_map[circle::BuiltinOperator_PACK] = make_unique<PackPrinter>();
832 // There is no Option for PAD
833 // There is no Option for PADV2
834 // There is no Option for PRELU
835 // There is no Option for RELU
836 // There is no Option for RELU6
837 // There is no Option for RELU_N1_TO_1
838 _op_map[circle::BuiltinOperator_REDUCE_ANY] = make_unique<ReducerPrinter>();
839 _op_map[circle::BuiltinOperator_REDUCE_MAX] = make_unique<ReducerPrinter>();
840 _op_map[circle::BuiltinOperator_REDUCE_MIN] = make_unique<ReducerPrinter>();
841 _op_map[circle::BuiltinOperator_REDUCE_PROD] = make_unique<ReducerPrinter>();
842 _op_map[circle::BuiltinOperator_RESHAPE] = make_unique<ReshapePrinter>();
843 _op_map[circle::BuiltinOperator_RESIZE_BILINEAR] = make_unique<ResizeBilinearPrinter>();
844 _op_map[circle::BuiltinOperator_RESIZE_NEAREST_NEIGHBOR] =
845 make_unique<ResizeNearestNeighborPrinter>();
846 _op_map[circle::BuiltinOperator_REVERSE_SEQUENCE] = make_unique<ReverseSequencePrinter>();
847 // There is no Option for ROUND
848 // There is no Option for SELECT
849 // There is no Option for SELECT_V2
850 _op_map[circle::BuiltinOperator_SHAPE] = make_unique<ShapePrinter>();
851 // There is no Option for SIN
852 // There is no Option for SLICE
853 _op_map[circle::BuiltinOperator_SOFTMAX] = make_unique<SoftmaxPrinter>();
854 _op_map[circle::BuiltinOperator_SPACE_TO_DEPTH] = make_unique<SpaceToDepthPrinter>();
855 // There is no Option for SPACE_TO_BATCH_ND
856 _op_map[circle::BuiltinOperator_SPARSE_TO_DENSE] = make_unique<SparseToDensePrinter>();
857 _op_map[circle::BuiltinOperator_SPLIT] = make_unique<SplitPrinter>();
858 _op_map[circle::BuiltinOperator_SPLIT_V] = make_unique<SplitVPrinter>();
859 _op_map[circle::BuiltinOperator_SQUEEZE] = make_unique<SqueezePrinter>();
860 _op_map[circle::BuiltinOperator_STRIDED_SLICE] = make_unique<StridedSlicePrinter>();
861 _op_map[circle::BuiltinOperator_SUB] = make_unique<SubPrinter>();
862 _op_map[circle::BuiltinOperator_SUM] = make_unique<ReducerPrinter>();
863 _op_map[circle::BuiltinOperator_SVDF] = make_unique<SVDFPrinter>();
864 _op_map[circle::BuiltinOperator_TRANSPOSE_CONV] = make_unique<TransposeConvPrinter>();
865 // There is no Option for TOPK_V2
866 _op_map[circle::BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_LSTM] =
867 make_unique<UnidirectionalSequenceLSTMPrinter>();
868 _op_map[circle::BuiltinOperator_UNIQUE] = make_unique<UniquePrinter>();
869 _op_map[circle::BuiltinOperator_WHILE] = make_unique<WhilePrinter>();
870 _op_map[circle::BuiltinOperator_CUSTOM] = make_unique<CustomOpPrinter>();
873 _op_map[circle::BuiltinOperator_BCQ_FULLY_CONNECTED] = make_unique<BCQFullyConnectedPrinter>();
874 _op_map[circle::BuiltinOperator_BCQ_GATHER] = make_unique<BCQGatherPrinter>();
875 _op_map[circle::BuiltinOperator_INSTANCE_NORM] = make_unique<InstanceNormPrinter>();
878 } // namespace circledump