MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / skip

Method skip

src/serialization/impl/file.cpp:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 void rewind() override { std::rewind(m_fptr); }
35
36 void skip(int64_t bytes) override {
37 auto err = fseek(m_fptr, bytes, SEEK_CUR);
38 mgb_assert(!err);
39 }
40
41 void read(void* dst, size_t size) override {
42 auto nr = fread(dst, 1, size, m_fptr);

Callers 12

skip_by_ngpuFunction · 0.45
skip_distributedFunction · 0.45
config_modelMethod · 0.45
loadMethod · 0.45
is_fbs_v2_fileFunction · 0.45
load_tensor_valueMethod · 0.45
loadMethod · 0.45
is_fbs_fileFunction · 0.45

Calls

no outgoing calls

Tested by 3

skip_by_ngpuFunction · 0.36
skip_distributedFunction · 0.36