Shortcuts

Function torch::nn::utils::_check_param_device

Function Documentation

inline std::optional<int64_t> torch::nn::utils::_check_param_device(const torch::Tensor &param, std::optional<int64_t> old_param_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