14 auto* op =
new TosaSerializationOperator(Op_UNKNOWN, Attribute_NONE,
nullptr, {}, {});
15 return new TosaSerializationBasicBlock(
"",
"", {op}, {}, {}, {});
20 const std::vector<const TensorInfo*>& inputs,
21 const std::vector<const TensorInfo*>& outputs,
28 auto activationDesc = PolymorphicDowncast<const ActivationDescriptor*>(&descriptor);
46 auto binaryDesc = PolymorphicDowncast<const ElementwiseBinaryDescriptor*>(&descriptor);
51 auto unaryDesc = PolymorphicDowncast<const ElementwiseUnaryDescriptor*>(&descriptor);
56 auto concatDesc = PolymorphicDowncast<const OriginsDescriptor*>(&descriptor);
65 auto conv2dDesc = PolymorphicDowncast<const Convolution2dDescriptor*>(&descriptor);
70 auto poolDesc = PolymorphicDowncast<const Pooling2dDescriptor*>(&descriptor);
72 bool avgPoolIgnoreValue =
80 else if (avgPoolIgnoreValue)
95 auto reshapeDesc = PolymorphicDowncast<const ReshapeDescriptor*>(&descriptor);
100 auto resizeDesc = PolymorphicDowncast<const ResizeDescriptor*>(&descriptor);
105 auto sliceDesc = PolymorphicDowncast<const SliceDescriptor*>(&descriptor);
110 auto splitDesc = PolymorphicDowncast<const SplitterDescriptor*>(&descriptor);
115 auto transposeConv2dDesc = PolymorphicDowncast<const TransposeConvolution2dDescriptor*>(&descriptor);
120 auto transposeDesc = PolymorphicDowncast<const TransposeDescriptor*>(&descriptor);
132 std::vector<const TensorInfo*> inputs;
135 inputs.push_back(&inputSlot.GetTensorInfo());
138 std::vector<const TensorInfo*> outputs;
141 outputs.push_back(&outputSlot.GetTensorInfo());