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

Method FloatTensor2x2

tensorflow/c/c_api_test.cc:1711–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

TF_AllocateTensorFunction · 0.85
TF_TensorDataFunction · 0.85

Tested by

no test coverage detected