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

Function FillTensorWithZeros

tensorflow/lite/testing/tf_driver.cc:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73template <typename T>
74void FillTensorWithZeros(tensorflow::Tensor* tensor) {
75 auto data = tensor->flat<T>();
76 for (int i = 0; i < tensor->NumElements(); i++) {
77 data(i) = 0;
78 }
79}
80
81template <typename T>
82string TensorDataToCsvString(const tensorflow::Tensor& tensor) {

Callers

nothing calls this directly

Calls 2

dataFunction · 0.50
NumElementsMethod · 0.45

Tested by

no test coverage detected