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

Function dump_tensor

src/core/include/megbrain/utils/debug.h:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 const HostTensorND& value, const std::string& name);
73
74static inline std::string dump_tensor(
75 const DeviceTensorND& value, const std::string& name) {
76 return dump_tensor(HostTensorND{}.copy_from(value).sync(), name);
77}
78
79//! write the value of a string to file
80MGE_WIN_DECLSPEC_FUC void write_to_file(

Callers 5

write_to_fileMethod · 0.85
flushMethod · 0.85
dump_varMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

syncMethod · 0.45
copy_fromMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68