ExTorch.Tensor.BlobView (extorch v0.2.0)

Copy Markdown

A tensor view backed by foreign memory.

This struct holds both the %ExTorch.Tensor{} and a reference to the memory owner, ensuring the owner is not garbage collected while the view is alive.

Access the underlying tensor via the tensor field. The owner field keeps the source data alive.

Summary

Types

t()

@type t() :: %ExTorch.Tensor.BlobView{owner: term(), tensor: ExTorch.Tensor.t()}