# `ExTorch.Tensor.Options`

The ``ExTorch.Tensor.Options`` struct defines the creation parameters of a tensor.

# `t`

```elixir
@type t() :: %ExTorch.Tensor.Options{
  device: ExTorch.Device.device(),
  dtype: ExTorch.DType.dtype(),
  layout: ExTorch.Layout.layout(),
  memory_format: ExTorch.MemoryFormat.memory_format(),
  pin_memory: boolean(),
  requires_grad: boolean()
}
```

An ``ExTorch.Tensor.Options`` defines the creation parameters of a tensor.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
