Shortcuts

Template Struct Example< Data, example::NoTarget >

Page Contents

Struct Documentation

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

A specialization for Example that does not 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.

Public Types

using DataType = Data
using TargetType = example::NoTarget

Public Functions

Example() = default
inline Example(Data data)
inline operator Data&()
inline operator const Data&() const

Public Members

Data data

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources