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

Function CompareTensorValues

tensorflow/core/framework/tensor_util_test.cc:529–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527
528template <typename T>
529void CompareTensorValues(const TensorProto& x, const TensorProto& y) {
530 Tensor x_t;
531 EXPECT_TRUE(x_t.FromProto(x));
532 Tensor y_t;
533 EXPECT_TRUE(y_t.FromProto(y));
534 test::ExpectTensorEqual<T>(x_t, y_t);
535}
536
537template <typename T>
538void ConstantTailTest(int64 length, int64 tail_length, bool as_field) {

Callers

nothing calls this directly

Calls 1

FromProtoMethod · 0.45

Tested by

no test coverage detected