Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
caffe2::TensorDeserializer< Context > Class Template Reference

TensorDeserializer is the deserializer for Tensors. More...

#include <blob_serialization.h>

Inheritance diagram for caffe2::TensorDeserializer< Context >:
caffe2::BlobDeserializerBase

Public Member Functions

void Deserialize (const BlobProto &proto, Blob *blob) override
 
void Deserialize (const TensorProto &proto, Tensor< Context > *tensor)
 

Detailed Description

template<class Context>
class caffe2::TensorDeserializer< Context >

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.


The documentation for this class was generated from the following file: