Rate this Page

Template Struct Example#

Page Contents

Struct Documentation#

template<typename Data = at::Tensor, typename Target = at::Tensor>
struct Example#

An Example from a dataset.

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

Public Types

using DataType = Data#
using TargetType = Target#

Public Functions

Example() = default#
inline Example(Data data, Target target)#

Public Members

Data data#
Target target#