View Source Evision.Backend (Evision v1.1.1)

Summary

Functions

Link to this function

all_close(out, a, b, opts)

View Source
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
>
@spec cpu_dispatch_info() :: map()

Reports the Nx CPU dispatch mode, selected dense select implementation, compiled implementations, and CPU features currently enabled by OpenCV.

Feature support is detected at runtime, including OS support. Availability of FP16, dot-product, or BF16 instructions does not imply that a kernel uses them.

Link to this function

cumulative_max(out, tensor, opts)

View Source
Link to this function

cumulative_min(out, tensor, opts)

View Source
Link to this function

cumulative_product(out, tensor, opts)

View Source
Link to this function

cumulative_sum(out, tensor, opts)

View Source
Link to this function

determinant(out, tensor)

View Source
Link to this function

logical_not(out, tensor)

View Source
@spec set_cpu_dispatch(:auto | :baseline) :: map()

Selects :auto or :baseline dispatch for custom Nx CPU kernels in this BEAM VM.

:auto chooses a compiled implementation supported by the CPU and OS. :baseline disables the optional NEON/AVX2 implementations. The initial mode comes from EVISION_CPU_DISPATCH=auto|baseline, read on first use, and defaults to auto. This function overrides it for subsequent calls; calls already in progress may finish using their previously selected implementation.

This currently controls dense select. It does not set CPU affinity, change OpenCV's own dispatch, or disable compiler-generated baseline SIMD instructions.

Link to this function

take(out, tensor, indices, axis)

View Source
Link to this function

take_along_axis(out, tensor, indices, axis)

View Source
Link to this function

top_k(out, tensor, opts)

View Source