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

Method PopulateTensor

tensorflow/lite/delegates/gpu/gl/kernels/test_util.cc:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool SingleOpModel::PopulateTensor(int index, std::vector<float>&& data) {
63 if (index >= inputs_.size() ||
64 inputs_[index].shape.DimensionsProduct() != data.size()) {
65 return false;
66 }
67 inputs_[index].data = std::move(data);
68 return true;
69}
70
71Status SingleOpModel::Invoke(const CompilationOptions& compile_options,
72 const RuntimeOptions& runtime_options,

Callers 15

TESTFunction · 0.45
prelu_test.ccFile · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
reshape_test.ccFile · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

sizeMethod · 0.45
DimensionsProductMethod · 0.45

Tested by

no test coverage detected