| 1709 | } |
| 1710 | |
| 1711 | TF_Tensor* FloatTensor2x2(const float* values) { |
| 1712 | const int64_t dims[2] = {2, 2}; |
| 1713 | TF_Tensor* t = TF_AllocateTensor(TF_FLOAT, dims, 2, sizeof(float) * 4); |
| 1714 | memcpy(TF_TensorData(t), values, sizeof(float) * 4); |
| 1715 | return t; |
| 1716 | } |
| 1717 | |
| 1718 | TF_Operation* FloatConst2x2(TF_Graph* graph, TF_Status* s, |
| 1719 | const float* values, const char* name) { |
nothing calls this directly
no test coverage detected