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

Function ExpectNext

tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113template <typename T>
114void ExpectNext(BundleReader* reader, const Tensor& expected_val) {
115 EXPECT_TRUE(reader->Valid());
116 reader->Next();
117 TF_ASSERT_OK(reader->status());
118 Tensor val;
119 TF_ASSERT_OK(reader->ReadCurrent(&val));
120 test::ExpectTensorEqual<T>(val, expected_val);
121}
122
123std::vector<string> AllTensorKeys(BundleReader* reader) {
124 std::vector<string> ret;

Callers

nothing calls this directly

Calls 4

ReadCurrentMethod · 0.80
ValidMethod · 0.45
NextMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected