pub struct Flex {}default_backend or crate feature flex only.Expand description
The Flex backend, a fast, portable CPU backend for Burn.
The E and I type parameters exist purely to match the shape of other Burn
backends (e.g. NdArray<E, I, Q>) so Flex slots into burn-dispatch’s
generic dispatch macros. The body of Flex uses runtime DType dispatch, so
both parameters are phantom and unused at runtime.
§Limitations of the phantom generics
The Backend impl is provided only for the default instantiation
Flex<f32, i32>. Writing Flex (with no arguments) resolves to the default
and works exactly as before. Writing Flex<f64, i64> or any other non-default
combination is a valid Rust type but will not satisfy trait bounds requiring
Backend, producing errors like:
the trait bound `Flex<f64, i64>: Backend` is not satisfiedThis is a deliberate compromise for the initial migration: making Flex
generic over element types at the trait-impl level is a follow-up that would
require rewriting all impl FooOps<Flex> for Flex blocks plus internal
Flex::method() calls (tracked in
#4762). Until then, treat
the generic parameters as opaque shape placeholders; real element-type
selection happens at runtime via DType.
The bound is locked in by a compile-fail doctest so that if someone later
makes the Backend impl generic over E/I, this documentation gets
flagged as out of date:
use burn_backend::Backend;
use burn_flex::Flex;
fn requires_backend<B: Backend>() {}
requires_backend::<Flex<f64, i64>>();Trait Implementations§
Source§impl ActivationOps<Flex> for Flex
impl ActivationOps<Flex> for Flex
Source§fn relu(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn relu( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn relu_backward(
output: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn relu_backward( output: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn leaky_relu(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
negative_slope: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn leaky_relu( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, negative_slope: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn prelu(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
alpha: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn prelu( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, alpha: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn gelu(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn gelu( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn gelu_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn gelu_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn sigmoid(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn sigmoid( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn sigmoid_backward(
output: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn sigmoid_backward( output: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn hard_sigmoid(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
alpha: Scalar,
beta: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn hard_sigmoid( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, alpha: Scalar, beta: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn log_sigmoid(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn log_sigmoid( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn log_sigmoid_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn log_sigmoid_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn softmax(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn softmax( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn log_softmax(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn log_softmax( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn softmin(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn softmin( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§impl Backend for Flex
impl Backend for Flex
Source§fn seed(_device: &<Flex as BackendTypes>::Device, seed: u64)
fn seed(_device: &<Flex as BackendTypes>::Device, seed: u64)
Source§fn device_count(_type_id: u16) -> usize
fn device_count(_type_id: u16) -> usize
device is a reference device used to determine the underlying backend that should be queried.
A CUDA device will return all devices available to CUDA, a Vulkan device will return all
devices available to Vulkan, etc.Source§fn dtype_usage(
_device: &<Flex as BackendTypes>::Device,
dtype: DType,
) -> EnumSet<DTypeUsage>
fn dtype_usage( _device: &<Flex as BackendTypes>::Device, dtype: DType, ) -> EnumSet<DTypeUsage>
Source§fn flush(_device: &<Flex as BackendTypes>::Device)
fn flush(_device: &<Flex as BackendTypes>::Device)
Source§fn ad_enabled(_device: &Self::Device) -> bool
fn ad_enabled(_device: &Self::Device) -> bool
Source§fn memory_persistent_allocations<Output, Input, Func>(
device: &Self::Device,
input: Input,
func: Func,
) -> Output
fn memory_persistent_allocations<Output, Input, Func>( device: &Self::Device, input: Input, func: Func, ) -> Output
Source§fn memory_cleanup(device: &Self::Device)
fn memory_cleanup(device: &Self::Device)
Source§fn sync(_device: &Self::Device) -> Result<(), ExecutionError>
fn sync(_device: &Self::Device) -> Result<(), ExecutionError>
Source§fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
device for an upcoming graph capture: route allocations into a
stable pool so every buffer allocated before graph_stop_capture can
be pinned. Call before the warmup run. No-op by default. Read moreSource§fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
device into a graph (see
graph_stop_capture). Errors on backends
without hardware graph support, so callers fall back to re-running.Source§fn graph_stop_capture(
_device: &Self::Device,
) -> Result<Self::GraphPrimitive, ExecutionError>
fn graph_stop_capture( _device: &Self::Device, ) -> Result<Self::GraphPrimitive, ExecutionError>
graph_replay.Source§unsafe fn graph_replay(
_device: &Self::Device,
_graph: &Self::GraphPrimitive,
) -> Result<(), ExecutionError>
unsafe fn graph_replay( _device: &Self::Device, _graph: &Self::GraphPrimitive, ) -> Result<(), ExecutionError>
Source§impl BackendIr for Flex
impl BackendIr for Flex
Source§type Handle = HandleKind<Flex>
type Handle = HandleKind<Flex>
Source§fn float_tensor(handle: TensorHandle<<Flex as BackendIr>::Handle>) -> FlexTensor
fn float_tensor(handle: TensorHandle<<Flex as BackendIr>::Handle>) -> FlexTensor
Source§fn int_tensor(handle: TensorHandle<<Flex as BackendIr>::Handle>) -> FlexTensor
fn int_tensor(handle: TensorHandle<<Flex as BackendIr>::Handle>) -> FlexTensor
Source§fn bool_tensor(handle: TensorHandle<<Flex as BackendIr>::Handle>) -> FlexTensor
fn bool_tensor(handle: TensorHandle<<Flex as BackendIr>::Handle>) -> FlexTensor
Source§fn quantized_tensor(
handle: TensorHandle<<Flex as BackendIr>::Handle>,
) -> FlexQTensor
fn quantized_tensor( handle: TensorHandle<<Flex as BackendIr>::Handle>, ) -> FlexQTensor
Source§fn float_tensor_handle(tensor: FlexTensor) -> <Flex as BackendIr>::Handle
fn float_tensor_handle(tensor: FlexTensor) -> <Flex as BackendIr>::Handle
Source§fn int_tensor_handle(tensor: FlexTensor) -> <Flex as BackendIr>::Handle
fn int_tensor_handle(tensor: FlexTensor) -> <Flex as BackendIr>::Handle
Source§fn bool_tensor_handle(tensor: FlexTensor) -> <Flex as BackendIr>::Handle
fn bool_tensor_handle(tensor: FlexTensor) -> <Flex as BackendIr>::Handle
Source§fn quantized_tensor_handle(tensor: FlexQTensor) -> <Flex as BackendIr>::Handle
fn quantized_tensor_handle(tensor: FlexQTensor) -> <Flex as BackendIr>::Handle
Source§impl BackendTypes for Flex
impl BackendTypes for Flex
Source§type Device = FlexDevice
type Device = FlexDevice
Source§type FloatTensorPrimitive = FlexTensor
type FloatTensorPrimitive = FlexTensor
Source§type IntTensorPrimitive = FlexTensor
type IntTensorPrimitive = FlexTensor
Source§type BoolTensorPrimitive = FlexTensor
type BoolTensorPrimitive = FlexTensor
Source§type QuantizedTensorPrimitive = FlexQTensor
type QuantizedTensorPrimitive = FlexQTensor
Source§type GraphPrimitive = GraphUnsupported
type GraphPrimitive = GraphUnsupported
Backend::graph_stop_capture and
consumed by Backend::graph_replay: a backend-owned recording of a
launch sequence that replays as a single dispatch. Read moreSource§impl BoolTensorOps<Flex> for Flex
impl BoolTensorOps<Flex> for Flex
Source§fn bool_from_data(
data: TensorData,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_from_data( data: TensorData, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§async fn bool_into_data(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn bool_into_data( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> Result<TensorData, ExecutionError>
Source§fn bool_to_device(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_to_device( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_cat(
tensors: Vec<<Flex as BackendTypes>::BoolTensorPrimitive>,
dim: usize,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_cat( tensors: Vec<<Flex as BackendTypes>::BoolTensorPrimitive>, dim: usize, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_reshape(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_reshape( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_slice(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
slices: &[Slice],
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_slice( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, slices: &[Slice], ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_empty(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_empty( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_slice_assign(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
slices: &[Slice],
value: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_slice_assign( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, slices: &[Slice], value: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_into_int(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bool_into_int( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bool_into_float(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
out_dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn bool_into_float( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, out_dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn bool_swap_dims(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_swap_dims( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim1: usize, dim2: usize, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_permute(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_permute( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_flip(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_flip( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_equal(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_equal( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_not(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_not( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_and(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_and( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
&&) operation on two boolean tensors. Read moreSource§fn bool_or(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_or( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
||) operation on two boolean tensors. Read moreSource§fn bool_xor(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_xor( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_expand(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_expand( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor to the given shape.Source§fn bool_zeros(
shape: Shape,
device: &<Flex as BackendTypes>::Device,
dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_zeros( shape: Shape, device: &<Flex as BackendTypes>::Device, dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_ones(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_ones( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_mask_where(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
mask: <Flex as BackendTypes>::BoolTensorPrimitive,
value: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_mask_where( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, mask: <Flex as BackendTypes>::BoolTensorPrimitive, value: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_mask_fill(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
mask: <Flex as BackendTypes>::BoolTensorPrimitive,
value: Scalar,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_mask_fill( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, mask: <Flex as BackendTypes>::BoolTensorPrimitive, value: Scalar, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_gather(
dim: usize,
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_gather( dim: usize, tensor: <Flex as BackendTypes>::BoolTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_scatter_or(
dim: usize,
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
value: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_scatter_or( dim: usize, tensor: <Flex as BackendTypes>::BoolTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, value: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_equal_elem(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_equal_elem( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_unfold(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim: usize,
size: usize,
step: usize,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_unfold( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim: usize, size: usize, step: usize, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_not_equal(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_not_equal( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_not_equal_elem(
lhs: <Flex as BackendTypes>::BoolTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_not_equal_elem( lhs: <Flex as BackendTypes>::BoolTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_any(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_any( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn bool_any_dim(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_any_dim( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_all(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_all( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn bool_all_dim(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_all_dim( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_select(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_select( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_select_or(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
value: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_select_or( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, value: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_transpose(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_transpose( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn bool_repeat_dim(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
dim: usize,
times: usize,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn bool_repeat_dim( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, dim: usize, times: usize, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§async fn bool_argwhere(
tensor: <Flex as BackendTypes>::BoolTensorPrimitive,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
async fn bool_argwhere( tensor: <Flex as BackendTypes>::BoolTensorPrimitive, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
impl Copy for Flex
Source§impl DispatchKindConversion<Flex> for DispatchTensor
impl DispatchKindConversion<Flex> for DispatchTensor
Source§fn try_into_backend(
tensor: DispatchTensor,
) -> Result<BackendTensor<Flex>, String>
fn try_into_backend( tensor: DispatchTensor, ) -> Result<BackendTensor<Flex>, String>
BackendTensor wrapper from a generic, dynamically-routed DispatchTensor. Read moreSource§fn from_backend(tensor: BackendTensor<Flex>) -> DispatchTensor
fn from_backend(tensor: BackendTensor<Flex>) -> DispatchTensor
DispatchTensor.Source§impl DistributedOps<Flex> for Flex
impl DistributedOps<Flex> for Flex
Source§fn start_communication_server(
devices: &[<B as BackendTypes>::Device],
config: DistributedConfig,
)
fn start_communication_server( devices: &[<B as BackendTypes>::Device], config: DistributedConfig, )
Source§fn close_communication_server(_device: &<B as BackendTypes>::Device)
fn close_communication_server(_device: &<B as BackendTypes>::Device)
Source§fn register_sync_parameters(
_device: &<B as BackendTypes>::Device,
distributed_params: Vec<DistributedParams>,
)
fn register_sync_parameters( _device: &<B as BackendTypes>::Device, distributed_params: Vec<DistributedParams>, )
Source§fn submit_sync_collective(device: &<B as BackendTypes>::Device)
fn submit_sync_collective(device: &<B as BackendTypes>::Device)
Source§fn submit_gradient_sync(
tensor: TensorRef<B>,
distributed_params: DistributedParams,
)
fn submit_gradient_sync( tensor: TensorRef<B>, distributed_params: DistributedParams, )
Source§fn all_reduce(
_tensor: <B as BackendTypes>::FloatTensorPrimitive,
_op: ReduceOperation,
_device_ids: Vec<DeviceId>,
) -> CollectiveTensor<B>
fn all_reduce( _tensor: <B as BackendTypes>::FloatTensorPrimitive, _op: ReduceOperation, _device_ids: Vec<DeviceId>, ) -> CollectiveTensor<B>
Source§fn sync_collective(_device: &<B as BackendTypes>::Device)
fn sync_collective(_device: &<B as BackendTypes>::Device)
Source§unsafe fn comm_device(tensor: &TensorRef<B>) -> <B as BackendTypes>::Device
unsafe fn comm_device(tensor: &TensorRef<B>) -> <B as BackendTypes>::Device
Source§unsafe fn float_from_ref(
tensor: &TensorRef<B>,
) -> <B as BackendTypes>::FloatTensorPrimitive
unsafe fn float_from_ref( tensor: &TensorRef<B>, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§impl FloatTensorOps<Flex> for Flex
impl FloatTensorOps<Flex> for Flex
Source§fn float_from_data(
data: TensorData,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_from_data( data: TensorData, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_random(
shape: Shape,
distribution: Distribution,
_device: &<Flex as BackendTypes>::Device,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_random( shape: Shape, distribution: Distribution, _device: &<Flex as BackendTypes>::Device, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§async fn float_into_data(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn float_into_data( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> Result<TensorData, ExecutionError>
Source§fn float_to_device(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_to_device( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_detach(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_detach( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_into_int(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn float_into_int( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn float_empty(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_empty( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_add(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_add( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_add_scalar(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_add_scalar( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sub(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sub( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sub_scalar(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sub_scalar( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_mul(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_mul( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_mul_scalar(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_mul_scalar( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_div(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_div( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_div_scalar(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_div_scalar( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_remainder(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_remainder( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_remainder_scalar(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_remainder_scalar( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_matmul(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_matmul( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cross(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cross( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_recip(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_recip( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_swap_dims(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_swap_dims( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim1: usize, dim2: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_permute(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_permute( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_flip(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_flip( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cat(
tensors: Vec<<Flex as BackendTypes>::FloatTensorPrimitive>,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cat( tensors: Vec<<Flex as BackendTypes>::FloatTensorPrimitive>, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_reshape(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_reshape( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_gather(
dim: usize,
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_gather( dim: usize, tensor: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_scatter_add(
dim: usize,
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
value: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_scatter_add( dim: usize, tensor: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, value: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_scatter_nd(
data: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
values: <Flex as BackendTypes>::FloatTensorPrimitive,
reduction: IndexingUpdateOp,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_scatter_nd( data: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, values: <Flex as BackendTypes>::FloatTensorPrimitive, reduction: IndexingUpdateOp, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_gather_nd(
data: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_gather_nd( data: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_select(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_select( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_select_add(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
value: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_select_add( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, value: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_slice(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
slices: &[Slice],
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_slice( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, slices: &[Slice], ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_slice_assign(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
slices: &[Slice],
value: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_slice_assign( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, slices: &[Slice], value: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_mask_where(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
mask: <Flex as BackendTypes>::BoolTensorPrimitive,
value: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_mask_where( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, mask: <Flex as BackendTypes>::BoolTensorPrimitive, value: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_mask_fill(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
mask: <Flex as BackendTypes>::BoolTensorPrimitive,
value: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_mask_fill( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, mask: <Flex as BackendTypes>::BoolTensorPrimitive, value: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_equal(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_equal( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_equal_elem(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_equal_elem( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_greater(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_greater( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_greater_elem(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_greater_elem( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_greater_equal(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_greater_equal( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_greater_equal_elem(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_greater_equal_elem( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_lower(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_lower( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_lower_elem(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_lower_elem( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_lower_equal(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_lower_equal( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_lower_equal_elem(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_lower_equal_elem( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_not_equal(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_not_equal( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_not_equal_elem(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_not_equal_elem( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_neg(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_neg( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_clamp(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
min: Scalar,
max: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_clamp( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, min: Scalar, max: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_clamp_min(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
min: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_clamp_min( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, min: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_clamp_max(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
max: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_clamp_max( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, max: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sign(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sign( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
tensor. Read moreSource§fn float_mean(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_mean( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_max(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_max( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_max_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_max_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_min(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_min( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_min_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_min_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_max_dim_with_indices(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices_dtype: IntDType,
) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
fn float_max_dim_with_indices( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, indices_dtype: IntDType, ) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
Source§fn float_min_dim_with_indices(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices_dtype: IntDType,
) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
fn float_min_dim_with_indices( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, indices_dtype: IntDType, ) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
Source§fn float_any(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_any( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn float_any_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_any_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_all(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_all( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn float_all_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_all_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_sum(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sum( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sum_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sum_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_mean_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_mean_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_prod(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_prod( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_prod_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_prod_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cumsum(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cumsum( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cumprod(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cumprod( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cummin(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cummin( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cummax(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cummax( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cast(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cast( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_exp(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_exp( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_log(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_log( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_log1p(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_log1p( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_powf(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_powf( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_powf_scalar_impl(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
value: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_powf_scalar_impl( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, value: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
value. Read moreSource§fn float_sqrt(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sqrt( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_abs(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_abs( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cos(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cos( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sin(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sin( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_tan(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_tan( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_cosh(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_cosh( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sinh(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sinh( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_tanh(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_tanh( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_acos(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_acos( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_acosh(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_acosh( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_asin(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_asin( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_asinh(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_asinh( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_atan(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_atan( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_atanh(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_atanh( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_atan2(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_atan2( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_round(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_round( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_floor(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_floor( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_ceil(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_ceil( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_trunc(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_trunc( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_erf(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_erf( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_argmax(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn float_argmax( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn float_argmin(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn float_argmin( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn float_expand(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_expand( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
tensor to the given shape.Source§fn float_unfold(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
size: usize,
step: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_unfold( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, size: usize, step: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_grid_sample_2d(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
grid: <Flex as BackendTypes>::FloatTensorPrimitive,
options: GridSampleOptions,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_grid_sample_2d( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, grid: <Flex as BackendTypes>::FloatTensorPrimitive, options: GridSampleOptions, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_zeros(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_zeros( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_ones(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_ones( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_full(
shape: Shape,
fill_value: Scalar,
_device: &<Flex as BackendTypes>::Device,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_full( shape: Shape, fill_value: Scalar, _device: &<Flex as BackendTypes>::Device, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_transpose(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_transpose( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_repeat_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
times: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_repeat_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, times: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_sort(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_sort( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
tensor by value in along a given dimension. Read moreSource§fn float_sort_with_indices(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
indices_dtype: IntDType,
) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
fn float_sort_with_indices( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, indices_dtype: IntDType, ) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
tensor by value in along a given dimension. Read moreSource§fn float_argsort(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn float_argsort( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read moreSource§fn float_powi(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_powi( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_powi_scalar(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_powi_scalar( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_powf_scalar(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
value: Scalar,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_powf_scalar( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, value: Scalar, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
value. Read moreSource§fn float_max_abs(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_max_abs( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_max_abs_dim(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_max_abs_dim( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_is_nan(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_is_nan( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_is_inf(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn float_is_inf( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn float_hypot(
lhs: <Flex as BackendTypes>::FloatTensorPrimitive,
rhs: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn float_hypot( lhs: <Flex as BackendTypes>::FloatTensorPrimitive, rhs: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn float_set_require_grad(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
_require_grad: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_set_require_grad( tensor: <B as BackendTypes>::FloatTensorPrimitive, _require_grad: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
require_grad flag of a tensor.Source§fn float_is_require_grad(
_tensor: &<B as BackendTypes>::FloatTensorPrimitive,
) -> bool
fn float_is_require_grad( _tensor: &<B as BackendTypes>::FloatTensorPrimitive, ) -> bool
require_grad flag of a tensor.Source§fn float_powi_scalar_impl(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powi_scalar_impl( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_argtopk(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argtopk( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn float_topk(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_topk( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_topk_with_indices(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_topk_with_indices( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§impl IntTensorOps<Flex> for Flex
impl IntTensorOps<Flex> for Flex
Source§fn int_gather(
dim: usize,
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_gather( dim: usize, tensor: <Flex as BackendTypes>::IntTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Gather ints along dim at the given indices.
The tensor dispatches on its own int dtype (I8/I16/I32/I64 signed or
U8/U16/U32/U64 unsigned). The indices tensor may be any of those
widths too - it’s normalised to isize by the shared read_indices
helper in ops::gather_scatter before the kernel runs, so callers are
not required to pre-convert to I64.
Source§fn int_scatter_add(
dim: usize,
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
value: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_scatter_add( dim: usize, tensor: <Flex as BackendTypes>::IntTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, value: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Scatter-add int values at the given indices along dim.
tensor and value must share the same int dtype; indices may be
any supported int width. See int_gather for the
full index-width policy.
Source§fn int_select(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_select( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Select ints along dim by a 1D index tensor.
The indices tensor may be any supported int width. See
int_gather for the full index-width policy.
Source§fn int_select_add(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
value: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_select_add( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, value: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Select-add int values at a 1D index tensor along dim.
tensor and value must share the same int dtype; indices may be
any supported int width. See int_gather for the
full index-width policy.
Source§fn int_from_data(
data: TensorData,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_from_data( data: TensorData, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§async fn int_into_data(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn int_into_data( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> Result<TensorData, ExecutionError>
Source§fn int_to_device(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_to_device( tensor: <Flex as BackendTypes>::IntTensorPrimitive, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_cat(
tensors: Vec<<Flex as BackendTypes>::IntTensorPrimitive>,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_cat( tensors: Vec<<Flex as BackendTypes>::IntTensorPrimitive>, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_reshape(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_reshape( tensor: <Flex as BackendTypes>::IntTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_slice(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
slices: &[Slice],
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_slice( tensor: <Flex as BackendTypes>::IntTensorPrimitive, slices: &[Slice], ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_empty(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_empty( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_mask_where(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
mask: <Flex as BackendTypes>::BoolTensorPrimitive,
value: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_mask_where( tensor: <Flex as BackendTypes>::IntTensorPrimitive, mask: <Flex as BackendTypes>::BoolTensorPrimitive, value: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_mask_fill(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
mask: <Flex as BackendTypes>::BoolTensorPrimitive,
value: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_mask_fill( tensor: <Flex as BackendTypes>::IntTensorPrimitive, mask: <Flex as BackendTypes>::BoolTensorPrimitive, value: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_slice_assign(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
slices: &[Slice],
value: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_slice_assign( tensor: <Flex as BackendTypes>::IntTensorPrimitive, slices: &[Slice], value: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_scatter_nd(
data: <Flex as BackendTypes>::IntTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
values: <Flex as BackendTypes>::IntTensorPrimitive,
reduction: IndexingUpdateOp,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_scatter_nd( data: <Flex as BackendTypes>::IntTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, values: <Flex as BackendTypes>::IntTensorPrimitive, reduction: IndexingUpdateOp, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_gather_nd(
data: <Flex as BackendTypes>::IntTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_gather_nd( data: <Flex as BackendTypes>::IntTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_equal(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_equal( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_equal_elem(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_equal_elem( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_greater(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_greater( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_greater_elem(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_greater_elem( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_greater_equal(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_greater_equal( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_greater_equal_elem(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_greater_equal_elem( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_lower(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_lower( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_lower_elem(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_lower_elem( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_lower_equal(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_lower_equal( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_lower_equal_elem(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_lower_equal_elem( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_add(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_add( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_add_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_add_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_sub(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_sub( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_sub_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_sub_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_mul(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_mul( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_mul_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_mul_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_div(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_div( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_div_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_div_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_remainder(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_remainder( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_remainder_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_remainder_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_into_float(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn int_into_float( tensor: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn int_swap_dims(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_swap_dims( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim1: usize, dim2: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_permute(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_permute( tensor: <Flex as BackendTypes>::IntTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_flip(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_flip( tensor: <Flex as BackendTypes>::IntTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_random(
shape: Shape,
distribution: Distribution,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_random( shape: Shape, distribution: Distribution, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_expand(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_expand( tensor: <Flex as BackendTypes>::IntTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::IntTensorPrimitive
tensor to the given shape.Source§fn int_matmul(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_matmul( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_sum(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_sum( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_sum_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_sum_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_prod(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_prod( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_prod_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_prod_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_mean_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_mean_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_cumsum(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_cumsum( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_cumprod(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_cumprod( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_cummin(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_cummin( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_cummax(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_cummax( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_argmax(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_argmax( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_argmin(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_argmin( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_abs(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_abs( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_and(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_and( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_and_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_and_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_or(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_or( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_or_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_or_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_xor(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_xor( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_xor_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_xor_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_not(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_not( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_left_shift(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_left_shift( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_left_shift_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_left_shift_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_right_shift(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_right_shift( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn bitwise_right_shift_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn bitwise_right_shift_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_cast(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_cast( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_unfold(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
size: usize,
step: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_unfold( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, size: usize, step: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_neg(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_neg( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_clamp(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
min: Scalar,
max: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_clamp( tensor: <Flex as BackendTypes>::IntTensorPrimitive, min: Scalar, max: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_clamp_min(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
min: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_clamp_min( tensor: <Flex as BackendTypes>::IntTensorPrimitive, min: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_clamp_max(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
max: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_clamp_max( tensor: <Flex as BackendTypes>::IntTensorPrimitive, max: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_sign(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_sign( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
tensor. Read moreSource§fn int_mean(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_mean( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_max(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_max( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_max_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_max_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_min(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_min( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_min_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_min_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_max_dim_with_indices(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> (<Flex as BackendTypes>::IntTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
fn int_max_dim_with_indices( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> (<Flex as BackendTypes>::IntTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
Source§fn int_min_dim_with_indices(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> (<Flex as BackendTypes>::IntTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
fn int_min_dim_with_indices( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> (<Flex as BackendTypes>::IntTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
Source§fn int_any(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_any( tensor: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn int_any_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_any_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_all(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_all( tensor: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn int_all_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_all_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_powi(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_powi( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_zeros(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_zeros( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_ones(
shape: Shape,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_ones( shape: Shape, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_full(
shape: Shape,
fill_value: Scalar,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_full( shape: Shape, fill_value: Scalar, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_transpose(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_transpose( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_repeat_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
times: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_repeat_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, times: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_not_equal(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: <Flex as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_not_equal( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: <Flex as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_not_equal_elem(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <Flex as BackendTypes>::BoolTensorPrimitive
fn int_not_equal_elem( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <Flex as BackendTypes>::BoolTensorPrimitive
Source§fn int_sort(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_sort( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> <Flex as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read moreSource§fn int_sort_with_indices(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> (<Flex as BackendTypes>::IntTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
fn int_sort_with_indices( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> (<Flex as BackendTypes>::IntTensorPrimitive, <Flex as BackendTypes>::IntTensorPrimitive)
tensor by value along a given dimension. Read moreSource§fn int_argsort(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_argsort( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> <Flex as BackendTypes>::IntTensorPrimitive
tensor by value
along a given dimension. Read moreSource§fn int_powi_scalar(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_powi_scalar( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_powi_scalar_impl(
lhs: <Flex as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_powi_scalar_impl( lhs: <Flex as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_max_abs(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_max_abs( tensor: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_max_abs_dim(
tensor: <Flex as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_max_abs_dim( tensor: <Flex as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_arange(
range: Range<i64>,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_arange( range: Range<i64>, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_arange_step(
range: Range<i64>,
step: usize,
_device: &<Flex as BackendTypes>::Device,
dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn int_arange_step( range: Range<i64>, step: usize, _device: &<Flex as BackendTypes>::Device, dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn int_square(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_square( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_argtopk(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_argtopk( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_topk(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_topk( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_topk_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_topk_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§impl ModuleOps<Flex> for Flex
impl ModuleOps<Flex> for Flex
Source§fn conv1d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: ConvOptions<1>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn conv1d( x: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: ConvOptions<1>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn conv2d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: ConvOptions<2>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn conv2d( x: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: ConvOptions<2>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn deform_conv2d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
offset: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
mask: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: DeformConvOptions<2>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn deform_conv2d( x: <Flex as BackendTypes>::FloatTensorPrimitive, offset: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, mask: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: DeformConvOptions<2>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn deform_conv2d_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
offset: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
mask: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
output_grad: <Flex as BackendTypes>::FloatTensorPrimitive,
options: DeformConvOptions<2>,
) -> DeformConv2dBackward<Flex>
fn deform_conv2d_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, offset: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, mask: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, output_grad: <Flex as BackendTypes>::FloatTensorPrimitive, options: DeformConvOptions<2>, ) -> DeformConv2dBackward<Flex>
Source§fn conv3d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: ConvOptions<3>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn conv3d( x: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: ConvOptions<3>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn conv_transpose1d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: ConvTransposeOptions<1>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d( x: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: ConvTransposeOptions<1>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn conv_transpose2d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: ConvTransposeOptions<2>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d( x: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: ConvTransposeOptions<2>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn conv_transpose3d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
weight: <Flex as BackendTypes>::FloatTensorPrimitive,
bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: ConvTransposeOptions<3>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d( x: <Flex as BackendTypes>::FloatTensorPrimitive, weight: <Flex as BackendTypes>::FloatTensorPrimitive, bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: ConvTransposeOptions<3>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn avg_pool2d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
ceil_mode: bool,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn avg_pool2d( x: <Flex as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ceil_mode: bool, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn avg_pool2d_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
_divisor_override: bool,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn avg_pool2d_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, _divisor_override: bool, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool2d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
output_size: [usize; 2],
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool2d( x: <Flex as BackendTypes>::FloatTensorPrimitive, output_size: [usize; 2], ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool2d_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool2d_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool2d(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn max_pool2d( x: <Flex as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool2d_with_indices(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
indices_dtype: IntDType,
) -> MaxPool2dWithIndices<Flex>
fn max_pool2d_with_indices( x: <Flex as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, indices_dtype: IntDType, ) -> MaxPool2dWithIndices<Flex>
Source§fn max_pool2d_with_indices_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
_kernel_size: [usize; 2],
_stride: [usize; 2],
_padding: [usize; 2],
_dilation: [usize; 2],
_ceil_mode: bool,
output_grad: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> MaxPool2dBackward<Flex>
fn max_pool2d_with_indices_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, _kernel_size: [usize; 2], _stride: [usize; 2], _padding: [usize; 2], _dilation: [usize; 2], _ceil_mode: bool, output_grad: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> MaxPool2dBackward<Flex>
Source§fn interpolate(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
output_size: [usize; 2],
options: InterpolateOptions,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn interpolate( x: <Flex as BackendTypes>::FloatTensorPrimitive, output_size: [usize; 2], options: InterpolateOptions, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn interpolate_backward(
x: <Flex as BackendTypes>::FloatTensorPrimitive,
grad: <Flex as BackendTypes>::FloatTensorPrimitive,
output_size: [usize; 2],
options: InterpolateOptions,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn interpolate_backward( x: <Flex as BackendTypes>::FloatTensorPrimitive, grad: <Flex as BackendTypes>::FloatTensorPrimitive, output_size: [usize; 2], options: InterpolateOptions, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn attention(
query: <Flex as BackendTypes>::FloatTensorPrimitive,
key: <Flex as BackendTypes>::FloatTensorPrimitive,
value: <Flex as BackendTypes>::FloatTensorPrimitive,
mask: Option<<Flex as BackendTypes>::BoolTensorPrimitive>,
attn_bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
options: AttentionModuleOptions,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn attention( query: <Flex as BackendTypes>::FloatTensorPrimitive, key: <Flex as BackendTypes>::FloatTensorPrimitive, value: <Flex as BackendTypes>::FloatTensorPrimitive, mask: Option<<Flex as BackendTypes>::BoolTensorPrimitive>, attn_bias: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, options: AttentionModuleOptions, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn rfft(
signal: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
n: Option<usize>,
) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::FloatTensorPrimitive)
fn rfft( signal: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, n: Option<usize>, ) -> (<Flex as BackendTypes>::FloatTensorPrimitive, <Flex as BackendTypes>::FloatTensorPrimitive)
Source§fn irfft(
spectrum_re: <Flex as BackendTypes>::FloatTensorPrimitive,
spectrum_im: <Flex as BackendTypes>::FloatTensorPrimitive,
dim: usize,
n: Option<usize>,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn irfft( spectrum_re: <Flex as BackendTypes>::FloatTensorPrimitive, spectrum_im: <Flex as BackendTypes>::FloatTensorPrimitive, dim: usize, n: Option<usize>, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn embedding(
weights: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn embedding( weights: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn layer_norm(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
gamma: <Flex as BackendTypes>::FloatTensorPrimitive,
beta: Option<<Flex as BackendTypes>::FloatTensorPrimitive>,
epsilon: f64,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn layer_norm( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, gamma: <Flex as BackendTypes>::FloatTensorPrimitive, beta: Option<<Flex as BackendTypes>::FloatTensorPrimitive>, epsilon: f64, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn embedding_backward(
weights: <Flex as BackendTypes>::FloatTensorPrimitive,
output_grad: <Flex as BackendTypes>::FloatTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn embedding_backward( weights: <Flex as BackendTypes>::FloatTensorPrimitive, output_grad: <Flex as BackendTypes>::FloatTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn linear(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
bias: Option<<B as BackendTypes>::FloatTensorPrimitive>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, bias: Option<<B as BackendTypes>::FloatTensorPrimitive>, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn linear_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn linear_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn linear_bias_backward(
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear_bias_backward( output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv1d_x_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d_x_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv1d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv1d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv2d_x_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv2d_x_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv2d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv2d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv2d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv2d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv3d_x_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv3d_x_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv3d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv3d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv3d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv3d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv_transpose1d_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv_transpose1d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv_transpose1d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv_transpose2d_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv_transpose2d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv_transpose2d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv_transpose3d_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv_transpose3d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv_transpose3d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn unfold4d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 2],
options: UnfoldOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn unfold4d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 2], options: UnfoldOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn avg_pool1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
count_include_pad: bool,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn avg_pool1d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn avg_pool1d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
count_include_pad: bool,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn avg_pool1d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
output_size: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool1d( x: <B as BackendTypes>::FloatTensorPrimitive, output_size: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool1d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool1d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn max_pool1d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool1d_with_indices(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
indices_dtype: IntDType,
) -> MaxPool1dWithIndices<B>
fn max_pool1d_with_indices( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, indices_dtype: IntDType, ) -> MaxPool1dWithIndices<B>
Source§fn max_pool1d_with_indices_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> MaxPool1dBackward<B>
fn max_pool1d_with_indices_backward( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, output_grad: <B as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> MaxPool1dBackward<B>
Source§fn ctc_loss(
log_probs: <B as BackendTypes>::FloatTensorPrimitive,
targets: <B as BackendTypes>::IntTensorPrimitive,
input_lengths: <B as BackendTypes>::IntTensorPrimitive,
target_lengths: <B as BackendTypes>::IntTensorPrimitive,
blank: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn ctc_loss( log_probs: <B as BackendTypes>::FloatTensorPrimitive, targets: <B as BackendTypes>::IntTensorPrimitive, input_lengths: <B as BackendTypes>::IntTensorPrimitive, target_lengths: <B as BackendTypes>::IntTensorPrimitive, blank: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn has_ctc_loss_backward() -> bool
fn has_ctc_loss_backward() -> bool
Source§fn ctc_loss_backward(
_log_probs: <B as BackendTypes>::FloatTensorPrimitive,
_targets: <B as BackendTypes>::IntTensorPrimitive,
_input_lengths: <B as BackendTypes>::IntTensorPrimitive,
_target_lengths: <B as BackendTypes>::IntTensorPrimitive,
_grad_loss: <B as BackendTypes>::FloatTensorPrimitive,
_blank: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn ctc_loss_backward( _log_probs: <B as BackendTypes>::FloatTensorPrimitive, _targets: <B as BackendTypes>::IntTensorPrimitive, _input_lengths: <B as BackendTypes>::IntTensorPrimitive, _target_lengths: <B as BackendTypes>::IntTensorPrimitive, _grad_loss: <B as BackendTypes>::FloatTensorPrimitive, _blank: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§impl QTensorOps<Flex> for Flex
impl QTensorOps<Flex> for Flex
Source§fn q_from_data(
data: TensorData,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_from_data( data: TensorData, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn quantize_dynamic(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
scheme: &QuantScheme,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn quantize_dynamic( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, scheme: &QuantScheme, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn quantize(
tensor: <Flex as BackendTypes>::FloatTensorPrimitive,
scheme: &QuantScheme,
qparams: QuantizationParametersPrimitive<Flex>,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn quantize( tensor: <Flex as BackendTypes>::FloatTensorPrimitive, scheme: &QuantScheme, qparams: QuantizationParametersPrimitive<Flex>, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn dequantize(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
dtype: FloatDType,
) -> <Flex as BackendTypes>::FloatTensorPrimitive
fn dequantize( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, dtype: FloatDType, ) -> <Flex as BackendTypes>::FloatTensorPrimitive
Source§fn q_to_device(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
_device: &<Flex as BackendTypes>::Device,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_to_device( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, _device: &<Flex as BackendTypes>::Device, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_reshape(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_reshape( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§async fn q_into_data(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn q_into_data( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, ) -> Result<TensorData, ExecutionError>
Source§fn q_swap_dims(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_swap_dims( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, dim1: usize, dim2: usize, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_permute(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_permute( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_flip(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
axes: &[usize],
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_flip( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, axes: &[usize], ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_expand(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
shape: Shape,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_expand( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, shape: Shape, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
tensor to the given shape.Source§fn q_select(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_select( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, dim: usize, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_slice(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
slices: &[Slice],
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_slice( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, slices: &[Slice], ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_argmax(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn q_argmax( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn q_argmin(
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <Flex as BackendTypes>::IntTensorPrimitive
fn q_argmin( tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <Flex as BackendTypes>::IntTensorPrimitive
Source§fn q_gather(
dim: usize,
tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive,
indices: <Flex as BackendTypes>::IntTensorPrimitive,
) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
fn q_gather( dim: usize, tensor: <Flex as BackendTypes>::QuantizedTensorPrimitive, indices: <Flex as BackendTypes>::IntTensorPrimitive, ) -> <Flex as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_detach(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_detach( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_set_require_grad(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
_require_grad: bool,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_set_require_grad( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, _require_grad: bool, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
require_grad flag of a tensor.Source§fn q_is_require_grad(
_tensor: &<B as BackendTypes>::QuantizedTensorPrimitive,
) -> bool
fn q_is_require_grad( _tensor: &<B as BackendTypes>::QuantizedTensorPrimitive, ) -> bool
require_grad flag of a tensor.Source§fn q_transpose(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_transpose( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_repeat_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_repeat_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_add(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_add( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_add_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_add_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_clamp_min(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
min: Scalar,
) -> TensorPrimitive<B>
fn q_clamp_min( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, min: Scalar, ) -> TensorPrimitive<B>
Source§fn q_clamp_max(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
max: Scalar,
) -> TensorPrimitive<B>
fn q_clamp_max( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, max: Scalar, ) -> TensorPrimitive<B>
Source§fn q_clamp(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
min: Scalar,
max: Scalar,
) -> TensorPrimitive<B>
fn q_clamp( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, min: Scalar, max: Scalar, ) -> TensorPrimitive<B>
Source§fn q_sub(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sub( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sub_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_sub_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_mul(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_mul( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_mul_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_mul_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_div(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_div( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_div_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_div_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_matmul(
lhs: TensorPrimitive<B>,
rhs: TensorPrimitive<B>,
) -> TensorPrimitive<B>
fn q_matmul( lhs: TensorPrimitive<B>, rhs: TensorPrimitive<B>, ) -> TensorPrimitive<B>
Source§fn q_neg(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_neg( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_recip(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_recip( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sum(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sum( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sum_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_sum_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_prod(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_prod( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_prod_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_prod_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_mean(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_mean( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_mean_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_mean_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cumsum(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cumsum( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cumprod(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cumprod( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cummin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cummin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cummax(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cummax( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_exp(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_exp( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_log(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_log( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_log1p(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_log1p( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_powf(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_powf( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_powi(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> TensorPrimitive<B>
fn q_powi( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_powi_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_powi_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_powf_scalar(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
value: Scalar,
) -> TensorPrimitive<B>
fn q_powf_scalar( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, value: Scalar, ) -> TensorPrimitive<B>
Source§fn q_sqrt(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sqrt( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_abs(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_abs( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_cos(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_cos( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_tan(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_tan( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_cosh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_cosh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sinh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sinh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_tanh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_tanh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_erf(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_erf( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_cat(
tensors: Vec<<B as BackendTypes>::QuantizedTensorPrimitive>,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_cat( tensors: Vec<<B as BackendTypes>::QuantizedTensorPrimitive>, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_argtopk(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn q_argtopk( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn q_topk(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_topk( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_topk_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_topk_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn q_max(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_max_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_max_dim_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_max_dim_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn q_min(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_min( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_min_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_min_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_min_dim_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_min_dim_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn q_max_abs(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max_abs( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_max_abs_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max_abs_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_any(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_any( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn q_any_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_any_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn q_all(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_all( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn q_all_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_all_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn q_sort(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
descending: bool,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_sort( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, descending: bool, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
tensor by value in along a given dimension. Read moreSource§fn q_sort_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_sort_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
tensor by value in along a given dimension. Read moreSource§fn q_argsort(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn q_argsort( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read moreSource§impl TransactionOps<Flex> for Flex
impl TransactionOps<Flex> for Flex
Source§fn tr_execute(
transaction: TransactionPrimitive<B>,
) -> impl Future<Output = Result<TransactionPrimitiveData, ExecutionError>> + Send
fn tr_execute( transaction: TransactionPrimitive<B>, ) -> impl Future<Output = Result<TransactionPrimitiveData, ExecutionError>> + Send
Auto Trait Implementations§
impl Freeze for Flex
impl RefUnwindSafe for Flex
impl Send for Flex
impl Sync for Flex
impl Unpin for Flex
impl UnsafeUnpin for Flex
impl UnwindSafe for Flex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more