| 527 | |
| 528 | template <typename T> |
| 529 | void 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 | |
| 537 | template <typename T> |
| 538 | void ConstantTailTest(int64 length, int64 tail_length, bool as_field) { |