Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ read
Method
read
src/serialization/impl/file.cpp:41–44 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
}
40
41
void read(void* dst, size_t size) override {
42
auto nr = fread(dst, 1, size, m_fptr);
43
mgb_assert(nr == size);
44
}
45
46
size_t tell() override { return std::ftell(m_fptr); }
47
};
Callers
6
test_serializer_custom_loader
Function · 0.45
load
Method · 0.45
is_fbs_v2_file
Function · 0.45
default_tensor_value_loader
Method · 0.45
load
Method · 0.45
is_fbs_file
Function · 0.45
Calls
no outgoing calls
Tested by
1
test_serializer_custom_loader
Function · 0.36