Apache SINGA
A distributed deep learning platform .
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
singa::Datum Class Reference
Inheritance diagram for singa::Datum:

Public Member Functions

 Datum (const Datum &from)
 
Datumoperator= (const Datum &from)
 
const
::google::protobuf::UnknownFieldSet & 
unknown_fields () const
 
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (Datum *other)
 
DatumNew () const
 
void CopyFrom (const ::google::protobuf::Message &from)
 
void MergeFrom (const ::google::protobuf::Message &from)
 
void CopyFrom (const Datum &from)
 
void MergeFrom (const Datum &from)
 
void Clear ()
 
bool IsInitialized () const
 
int ByteSize () const
 
bool MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input)
 
void SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const
 
::google::protobuf::uint8 * SerializeWithCachedSizesToArray (::google::protobuf::uint8 *output) const
 
int GetCachedSize () const
 
::google::protobuf::Metadata GetMetadata () const
 
bool has_channels () const
 
void clear_channels ()
 
inline::google::protobuf::int32 channels () const
 
void set_channels (::google::protobuf::int32 value)
 
bool has_height () const
 
void clear_height ()
 
inline::google::protobuf::int32 height () const
 
void set_height (::google::protobuf::int32 value)
 
bool has_width () const
 
void clear_width ()
 
inline::google::protobuf::int32 width () const
 
void set_width (::google::protobuf::int32 value)
 
bool has_data () const
 
void clear_data ()
 
const ::std::string & data () const
 
void set_data (const ::std::string &value)
 
void set_data (const char *value)
 
void set_data (const void *value, size_t size)
 
inline::std::string * mutable_data ()
 
inline::std::string * release_data ()
 
void set_allocated_data (::std::string *data)
 
bool has_label () const
 
void clear_label ()
 
inline::google::protobuf::int32 label () const
 
void set_label (::google::protobuf::int32 value)
 
int float_data_size () const
 
void clear_float_data ()
 
float float_data (int index) const
 
void set_float_data (int index, float value)
 
void add_float_data (float value)
 
const
::google::protobuf::RepeatedField
< float > & 
float_data () const
 
inline::google::protobuf::RepeatedField
< float > * 
mutable_float_data ()
 
bool has_encoded () const
 
void clear_encoded ()
 
bool encoded () const
 
void set_encoded (bool value)
 

Static Public Member Functions

static const
::google::protobuf::Descriptor * 
descriptor ()
 
static const Datumdefault_instance ()
 

Static Public Attributes

static const int kChannelsFieldNumber = 1
 
static const int kHeightFieldNumber = 2
 
static const int kWidthFieldNumber = 3
 
static const int kDataFieldNumber = 4
 
static const int kLabelFieldNumber = 5
 
static const int kFloatDataFieldNumber = 6
 
static const int kEncodedFieldNumber = 7
 

Friends

void protobuf_AddDesc_model_2eproto ()
 
void protobuf_AssignDesc_model_2eproto ()
 
void protobuf_ShutdownFile_model_2eproto ()
 

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