Shortcuts

Struct VariableInfo

Page Contents

Struct Documentation

struct VariableInfo

Public Functions

explicit VariableInfo()
explicit 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<c10::SymInt> 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