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

Method PopulateTensor

tensorflow/lite/kernels/lstm_test.cc:291–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290 template <typename T>
291 void PopulateTensor(int index, const std::vector<T>& data) {
292 // Nothing to do if tensor is an optional input or if data vector is empty.
293 if ((index == kOptionalTensor) || data.empty()) return;
294 SingleOpModel::PopulateTensor(index, data);
295 }
296
297 void SetWeights(int index, const std::vector<float>& data) {
298 if (data.empty()) return;

Callers 1

TESTFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected