Shortcuts

Union IValue::Payload

Nested Relationships

This union is a nested type of Struct IValue.

Union Documentation

union Payload
#include <ivalue.h>

Public Functions

inline Payload()
inline ~Payload()

Public Members

union c10::IValue::Payload::TriviallyCopyablePayload u
at::Tensor as_tensor
union TriviallyCopyablePayload
#include <ivalue.h>

Public Functions

inline TriviallyCopyablePayload()

Public Members

int64_t as_int
double as_double
bool as_bool
c10::intrusive_ptr_target *as_intrusive_ptr
c10::DeviceType type
DeviceIndex index
struct c10::IValue::Payload::TriviallyCopyablePayload::[anonymous] as_device

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