| 72 | |
| 73 | template <typename T> |
| 74 | void 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 | |
| 81 | template <typename T> |
| 82 | string TensorDataToCsvString(const tensorflow::Tensor& tensor) { |
nothing calls this directly
no test coverage detected