Shortcuts

Struct VariableInfo

Page Contents

Struct Documentation

struct torch::autograd::VariableInfo

Public Functions

VariableInfo()
VariableInfo(const Variable &var)
Variable zeros(at::OptionalDeviceGuard &device_guard) const

Public Members

at::Layout layout = at::Layout::Strided
at::Device device = at::kCPU
at::ScalarType scalar_type = at::kFloat
std::vector<int64_t> size
bool requires_grad
bool is_empty

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