MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Read

Method Read

oneflow/user/data/data_reader.h:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void Read(user_op::KernelComputeContext* ctx) {
44 CHECK(load_thrd_.joinable()) << "You should call StartLoadThread before read data";
45 auto batch = FetchBatchData();
46 parser_->Parse(batch, ctx);
47 }
48
49 void Close() {
50 if (!is_closed_.load()) {

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.45

Tested by

no test coverage detected