View Source Evision.Backend (Evision v1.1.1)
Summary
Functions
Tensor with constant values.
Reports the Nx CPU dispatch mode, selected dense select implementation,
compiled implementations, and CPU features currently enabled by OpenCV.
Selects :auto or :baseline dispatch for custom Nx CPU kernels in this BEAM VM.
Functions
@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.
@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.