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

An Example from a dataset. More...

#include <example.h>

Public Types

using DataType = Data
using TargetType = Target

Public Member Functions

 Example (Data data, Target target)

Data Fields

Data data
Target target

Detailed Description

template<typename Data = Tensor, typename Target = Tensor>
struct torch::data::Example< Data, Target >

An Example from a dataset.

A dataset consists of data and an associated target (label).

Definition at line 12 of file example.h.

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