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

Method AddInput

tensorflow/lite/kernels/test_util.cc:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70int SingleOpModel::AddInput(const TensorData& t, bool is_variable) {
71 int id = 0;
72 if (t.per_channel_quantization) {
73 id = AddTensorPerChannelQuant(t);
74 } else {
75 id = AddTensor<float>(t, {}, is_variable);
76 }
77 inputs_.push_back(id);
78 return id;
79}
80
81int SingleOpModel::AddNullInput() {
82 int id = kOptionalTensor;

Callers 3

PadV2OpConstModelMethod · 0.45
PadV2OpDynamicModelMethod · 0.45
PadOpDynamicModelMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected