MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetVersion

Method GetVersion

tensorflow/lite/toco/tflite/operator.cc:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 int GetVersion(const OperatorSignature& op_signature) const override {
205 const string& input_name = op_signature.op->inputs[0];
206 const Array& input_array = op_signature.model->GetArray(input_name);
207 // Version 2 supports signed int8 input types.
208 if (input_array.data_type == ArrayDataType::kInt8) {
209 return 2;
210 }
211 return 1;
212 }
213};
214
215class AddN : public BuiltinOperator<AddNOperator, ::tflite::AddNOptions,

Callers 6

OperatorKeyMethod · 0.45
TEST_FFunction · 0.45
SimpleVersioningTestFunction · 0.45
SimpleMulVersioningTestFunction · 0.45

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.36
SimpleVersioningTestFunction · 0.36
SimpleMulVersioningTestFunction · 0.36