1#ifndef DEF_INSTR
2#error The macro DEF_INSTR was not declared.
3#endif
4#ifndef DEF_VALUE
5#error The macro DEF_VALUE was not declared.
6#endif
7#ifndef DEF_BACKEND_SPECIFIC_INSTR
8#error The macro DEF_BACKEND_SPECIFIC_INSTR was not declared.
9#endif
10#ifndef DEF_INSTR_RANGE
11#define DEF_INSTR_RANGE(ID, FIRST, LAST)
12#endif
13DEF_VALUE(WeightVar, weightvar)
14DEF_INSTR(AllocActivationInst, allocactivation)
15DEF_INSTR(TensorViewInst, tensorview)
16DEF_INSTR(DeallocActivationInst, deallocactivation)
17DEF_INSTR(CopyInst, copy)
18DEF_INSTR(ConvolutionInst, convolution)
19DEF_INSTR(ConvolutionGradInst, convolutiongrad)
20DEF_INSTR(ChannelwiseQuantizedConvolutionInst, channelwisequantizedconvolution)
21DEF_INSTR(ConvTransposeInst, convtranspose)
22DEF_INSTR(Convolution3DInst, convolution3d)
23DEF_INSTR(Convolution3DGradInst, convolution3dgrad)
24DEF_INSTR(BatchNormalizationInst, batchnormalization)
25DEF_INSTR(MaxPoolWithArgmaxInst, maxpoolwithargmax)
26DEF_INSTR(MaxPoolWithArgmaxGradInst, maxpoolwithargmaxgrad)
27DEF_INSTR(MaxPoolInst, maxpool)
28DEF_INSTR(AvgPoolInst, avgpool)
29DEF_INSTR(AvgPoolGradInst, avgpoolgrad)
30DEF_INSTR(ArgMaxInst, argmax)
31DEF_INSTR(ArgMinInst, argmin)
32DEF_INSTR(AdaptiveAvgPoolInst, adaptiveavgpool)
33DEF_INSTR(AdaptiveAvgPoolGradInst, adaptiveavgpoolgrad)
34DEF_INSTR(FullyConnectedInst, fullyconnected)
35DEF_INSTR(RowwiseQuantizedFullyConnectedInst, rowwisequantizedfullyconnected)
36DEF_INSTR(DynamicQuantizedFullyConnectedInst, dynamicquantizedfullyconnected)
37DEF_INSTR(DynamicRowwiseQuantizedFullyConnectedInst, dynamicrowwisequantizedfullyconnected)
38DEF_INSTR(LocalResponseNormalizationInst, localresponsenormalization)
39DEF_INSTR(LocalResponseNormalizationGradInst, localresponsenormalizationgrad)
40DEF_INSTR(BucketizeInst, bucketize)
41DEF_INSTR(LayerNormalizationInst, layernormalization)
42DEF_INSTR(SoftMaxInst, softmax)
43DEF_INSTR(SoftMaxGradInst, softmaxgrad)
44DEF_INSTR(LogSoftMaxInst, logsoftmax)
45DEF_INSTR(CrossEntropyLossInst, crossentropyloss)
46DEF_INSTR(CrossEntropyLossGradInst, crossentropylossgrad)
47DEF_INSTR(MatMulInst, matmul)
48DEF_INSTR(BatchMatMulInst, batchmatmul)
49DEF_INSTR(BatchedReduceAddInst, batchedreduceadd)
50DEF_INSTR(BatchedReduceMinInst, batchedreducemin)
51DEF_INSTR(BatchedReduceMaxInst, batchedreducemax)
52DEF_INSTR(BatchedReduceProdInst, batchedreduceprod)
53DEF_INSTR(CumSumInst, cumsum)
54DEF_INSTR(LengthsSumInst, lengthssum)
55DEF_INSTR(SparseLengthsSumInst, sparselengthssum)
56DEF_INSTR(SparseLengthsSumGradInst, sparselengthssumgrad)
57DEF_INSTR(SparseLengthsWeightedSumInst, sparselengthsweightedsum)
58DEF_INSTR(SparseLengthsWeightedSumGradInst, sparselengthsweightedsumgrad)
59DEF_INSTR(EmbeddingInst, embedding)
60DEF_INSTR(EmbeddingBagInst, embeddingbag)
61DEF_INSTR(RowwiseQuantizedSparseLengthsWeightedSumInst, rowwisequantizedsparselengthsweightedsum)
62DEF_INSTR(FusedRowwiseQuantizedSparseLengthsWeightedSumInst, fusedrowwisequantizedsparselengthsweightedsum)
63DEF_INSTR(FusedRowwiseQuantizedSparseLengthsSumInst, fusedrowwisequantizedsparselengthssum)
64DEF_INSTR(EmbeddingBagByteRowwiseOffsetsInst, embeddingbagbyterowwiseoffsets)
65DEF_INSTR(LengthsToRangesInst, lengthstoranges)
66DEF_INSTR(LengthsRangeFillInst, lengthsrangefill)
67DEF_INSTR(BatchSparseToDenseInst, batchsparsetodense)
68DEF_INSTR(FillExamplesWithIndicatorInst, fillexampleswithindicator)
69DEF_INSTR(SparseToDenseMaskInst, sparsetodensemask)
70DEF_INSTR(BatchedAddInst, batchedadd)
71DEF_INSTR(ElementAddInst, elementadd)
72DEF_INSTR(ElementSubInst, elementsub)
73DEF_INSTR(ElementMulInst, elementmul)
74DEF_INSTR(ElementDivInst, elementdiv)
75DEF_INSTR(ElementFmodInst, elementfmod)
76DEF_INSTR(ElementMaxInst, elementmax)
77DEF_INSTR(ElementMinInst, elementmin)
78DEF_INSTR(ElementCmpEQInst, elementcmpeq)
79DEF_INSTR(ElementCmpNEQInst, elementcmpneq)
80DEF_INSTR(ElementCmpLTInst, elementcmplt)
81DEF_INSTR(ElementCmpLTEInst, elementcmplte)
82DEF_INSTR(ElementIsNaNInst, elementisnan)
83DEF_INSTR(ElementPowInst, elementpow)
84DEF_INSTR(ElementAndInst, elementand)
85DEF_INSTR(ElementBitwiseAndInst, elementbitwiseand)
86DEF_INSTR(ElementOrInst, elementor)
87DEF_INSTR(ElementBitwiseOrInst, elementbitwiseor)
88DEF_INSTR(ElementXorInst, elementxor)
89DEF_INSTR(ElementBitwiseXorInst, elementbitwisexor)
90DEF_INSTR(ElementNotInst, elementnot)
91DEF_INSTR(ElementBitwiseNotInst, elementbitwisenot)
92DEF_INSTR(ElementNegInst, elementneg)
93DEF_INSTR(ElementAbsInst, elementabs)
94DEF_INSTR(ElementFloorInst, elementfloor)
95DEF_INSTR(ElementSignInst, elementsign)
96DEF_INSTR(ElementCeilInst, elementceil)
97DEF_INSTR(ElementTruncateInst, elementtruncate)
98DEF_INSTR(ElementRoundInst, elementround)
99DEF_INSTR(ElementSqrtInst, elementsqrt)
100DEF_INSTR(ElementRsqrtInst, elementrsqrt)
101DEF_INSTR(ElementReciprocalInst, elementreciprocal)
102DEF_INSTR(ElementSinInst, elementsin)
103DEF_INSTR(ElementCosInst, elementcos)
104DEF_INSTR(ElementLogInst, elementlog)
105DEF_INSTR(ElementExpInst, elementexp)
106DEF_INSTR(ElementAcosInst, elementacos)
107DEF_INSTR(ElementAsinInst, elementasin)
108DEF_INSTR(ElementAtanInst, elementatan)
109DEF_INSTR(ElementErfInst, elementerf)
110DEF_INSTR(NonZeroInst, nonzero)
111DEF_INSTR(ElementSelectInst, elementselect)
112DEF_INSTR(ModuloInst, modulo)
113DEF_INSTR(BatchedPairwiseDotProductInst, batchedpairwisedotproduct)
114DEF_INSTR(BatchedPairwiseDotProductGradInst, batchedpairwisedotproductgrad)
115DEF_INSTR(BatchedUnaryEmbeddingsBagsInst, batchedunaryembeddingsbags)
116DEF_INSTR(IntNBitSplitEmbeddingBagsInst, intnbitsplitembeddingbags)
117DEF_INSTR(IntNBitSplitEmbeddingWeightedBagsInst, intnbitsplitembeddingweightedbags)
118DEF_INSTR(GaussianFillInst, gaussianfill)
119DEF_INSTR(ReluInst, relu)
120DEF_INSTR(ReluGradInst, relugrad)
121DEF_INSTR(ClipInst, clip)
122DEF_INSTR(SigmoidInst, sigmoid)
123DEF_INSTR(TanhInst, tanh)
124DEF_INSTR(LeakyReluInst, leakyrelu)
125DEF_INSTR(SoftPlusInst, softplus)
126DEF_INSTR(TransposeInst, transpose)
127DEF_INSTR(ConcatInst, concat)
128DEF_INSTR(SplatInst, splat)
129DEF_INSTR(TouchInst, touch)
130DEF_INSTR(InsertTensorInst, inserttensor)
131DEF_INSTR(ExtractTensorInst, extracttensor)
132DEF_INSTR(GatherInst, gather)
133DEF_INSTR(GatherNDInst, gathernd)
134DEF_INSTR(GatherElementsInst, gatherelements)
135DEF_INSTR(GatherRangesInst, gatherranges)
136DEF_INSTR(ScatterDataInst, scatterdata)
137DEF_INSTR(BatchOneHotInst, batchonehot)
138DEF_INSTR(SpaceToDepthInst, spacetodepth)
139DEF_INSTR(ResizeNearestInst, resizenearest)
140DEF_INSTR(ResizeBilinearInst, resizebilinear)
141DEF_INSTR(SparseLabelSplitInst, sparselabelsplit)
142DEF_INSTR(FlipInst, flip)
143DEF_INSTR(DebugPrintInst, debugprint)
144DEF_INSTR(TraceEventInst, traceevent)
145DEF_INSTR(InstrumentInst, instrument)
146DEF_INSTR(QuantizationProfileInst, quantizationprofile)
147DEF_INSTR(IntLookupTableInst, intlookuptable)
148DEF_INSTR(QuantizeInst, quantize)
149DEF_INSTR(DequantizeInst, dequantize)
150DEF_INSTR(RescaleQuantizedInst, rescalequantized)
151DEF_INSTR(TopKInst, topk)
152DEF_INSTR(ConvertToInst, convertto)
153DEF_INSTR(ExternalFunctionCallInst, externalfunctioncall)
154DEF_INSTR(AudioSpectrogramInst, audiospectrogram)
155DEF_INSTR(MFCCInst, mfcc)
156DEF_INSTR(NonMaxSuppressionInst, nonmaxsuppression)
157DEF_INSTR(TFLiteDetectionPostProcessInst, tflitedetectionpostprocess)
158DEF_INSTR(ROIAlignInst, roialign)
159DEF_INSTR(BBoxTransformInst, bboxtransform)
160DEF_INSTR(CollectRpnProposalsInst, collectrpnproposals)
161DEF_INSTR(LookupTableInst, lookuptable)
162DEF_BACKEND_SPECIFIC_INSTR(CPUMaxSplatInst, cpumaxsplat)
163DEF_BACKEND_SPECIFIC_INSTR(CPUConvDKKC8Inst, cpuconvdkkc8)
164DEF_INSTR_RANGE(Instruction, AllocActivationInst, CPUConvDKKC8Inst)
165#undef DEF_INSTR_RANGE
166#undef DEF_INSTR
167#undef DEF_BACKEND_SPECIFIC_INSTR
168#undef DEF_VALUE