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

Function FillIntTensor

tensorflow/lite/kernels/subgraph_test_util.cc:366–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void FillIntTensor(TfLiteTensor* tensor, const std::vector<int32_t>& data) {
367 int count = NumElements(tensor);
368 ASSERT_EQ(count, data.size());
369 for (int i = 0; i < count; ++i) {
370 tensor->data.i32[i] = data[i];
371 }
372}
373
374void CheckIntTensor(const TfLiteTensor* tensor, const std::vector<int>& shape,
375 const std::vector<int32_t>& data) {

Callers 5

TEST_FFunction · 0.85
TEST_FFunction · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85

Calls 2

NumElementsFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected