MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / num_bytes

Method num_bytes

examples/cpp/xlnet/cnpy.h:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 size_t num_bytes() const
62 {
63 return data_holder->size();
64 }
65
66 std::shared_ptr<std::vector<char>> data_holder;
67 std::vector<size_t> shape;

Callers 2

load_the_npy_fileFunction · 0.80
load_the_npz_arrayFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected