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

Method IsExhausted

tensorflow/compiler/xla/packed_literal_reader.cc:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool PackedLiteralReader::IsExhausted() const {
84 // Try to read a single byte from offset_. If we can't, we've
85 // exhausted the data.
86 char single_byte[1];
87 absl::string_view sp;
88 auto s = file_->Read(offset_, sizeof(single_byte), &sp, single_byte);
89 return !s.ok();
90}
91
92} // namespace xla

Callers 1

TEST_FFunction · 0.80

Calls 2

ReadMethod · 0.45
okMethod · 0.45

Tested by 1

TEST_FFunction · 0.64