| 84 | } |
| 85 | |
| 86 | std::vector<tensorflow::int64> GetTensorShape(const tensorflow::Tensor& t) { |
| 87 | std::vector<tensorflow::int64> shape(t.dims()); |
| 88 | for (int i = 0; i < t.dims(); ++i) { |
| 89 | shape[i] = t.dim_size(i); |
| 90 | } |
| 91 | return shape; |
| 92 | } |
| 93 | |
| 94 | template <typename T> |
| 95 | std::vector<T> GetTensorData(const tensorflow::Tensor& t) { |
no test coverage detected