Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Public Member Functions | Data Fields
torch::data::Example< Data, example::NoTarget > Struct Template Reference

A specialization for Example that does not have have a target. More...

#include <example.h>

Public Types

using DataType = Data
 
using TargetType = example::NoTarget
 

Public Member Functions

 Example (Data data)
 
 operator Data & ()
 
 operator const Data & () const
 

Data Fields

Data data
 

Detailed Description

template<typename Data>
struct torch::data::Example< Data, example::NoTarget >

A specialization for Example that does not have have a target.

This class exists so that code can be written for a templated Example type, and work both for labeled and unlabeled datasets.

Definition at line 33 of file example.h.


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