View Source Evision.Backend (Evision v0.2.9)

Summary

Functions

Tensor with constant values.

Functions

Link to this function

constant(out, scalar, backend_options)

View Source
@spec constant(Nx.Tensor.t(), number(), any()) :: Nx.Tensor.t()
@spec constant(Nx.Tensor.t(), number(), any()) :: Nx.Tensor.t()

Tensor with constant values.

Example

Nx.tensor(1.0, backend: Evision.Backend)
#Nx.Tensor<
  f32
  Evision.Backend
  1.0
>