TensorDeserializer is the deserializer for Tensors. More...
#include <blob_serialization.h>
Public Member Functions | |
void | Deserialize (const BlobProto &proto, Blob *blob) override |
void | Deserialize (const TensorProto &proto, Tensor< Context > *tensor) |
TensorDeserializer is the deserializer for Tensors.
The device that the deserialized Tensor will live under is determined by the device_detail field. If you want to specify the device of the deserialized tensor, change the TensorProto's corresponding fields before calling Deserialize.
Definition at line 98 of file blob_serialization.h.