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

Method CompareTensors

tensorflow/c/c_api_test.cc:1602–1606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600 }
1601
1602 void CompareTensors(TF_Tensor* a, TF_Tensor* b) {
1603 float* a_data = static_cast<float*>(TF_TensorData(a));
1604 float* b_data = static_cast<float*>(TF_TensorData(b));
1605 EXPECT_EQ(*a_data, *b_data);
1606 }
1607
1608 void AddGradients(bool grad_inputs_provided, const char* prefix,
1609 TF_Output* inputs, int ninputs, TF_Output* outputs,

Callers

nothing calls this directly

Calls 1

TF_TensorDataFunction · 0.85

Tested by

no test coverage detected