• Docs >
  • Library API >
  • Function at::from_blob(void *, IntArrayRef, IntArrayRef, const std::function<void(void *)>&, const TensorOptions&, const c10::optional<Device>)
  • Edit on GitHub
Shortcuts

Function at::from_blob(void *, IntArrayRef, IntArrayRef, const std::function<void(void *)>&, const TensorOptions&, const c10::optional<Device>)

Function Documentation

Tensor at::from_blob(void *data, IntArrayRef sizes, IntArrayRef strides, const std::function<void(void*)> &deleter, const TensorOptions &options = {}, const c10::optional<Device> target_device = c10::nullopt, )

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