载入中...
搜索中...
未找到
OnnxByteStorage.h
浏览该文件的文档.
void assign(I a, I b)
Copy borrowed iterators into owning CPU storage. @lifetime Input iterators are borrowed only for this...
Definition OnnxByteStorage.h:79
uint8_t * data()
Borrow mutable CPU data until mutation/destruction; detaches graph aliases before writing....
Definition OnnxByteStorage.h:56
const uint8_t * data() const
Borrow CPU data until this storage is mutated or destroyed; device-thread only for lazy data....
Definition OnnxByteStorage.h:52
Definition OnnxByteStorage.h:6
OnnxElement
ONNX wire element types; distinct from block-quantized Tensor storage.
Definition OnnxModel.h:18
Definition Container.h:602
Immutable buffer shared by graph aliases; exactly one storage is authoritative.
Definition OnnxStorage.h:19
std::shared_ptr< OnnxDeviceStorage > device
Definition OnnxStorage.h:21
std::shared_ptr< const std::vector< uint8_t > > host
Definition OnnxStorage.h:20
std::vector< int64_t > shape
Definition OnnxByteStorage.h:88