Skip to main content

Module prelude

Module prelude 

Source
Expand description

The einsum and tensordot grammar traits, options and spec types (#2552).

Re-exports§

pub use crate::ConcreteEinsumPlan;
pub use crate::ConjMask;
pub use crate::ContractionTree;
pub use crate::EinsumAxis;
pub use crate::EinsumNotation;
pub use crate::EinsumOps;
pub use crate::EinsumOptimize;
pub use crate::EinsumOptions;
pub use crate::EinsumSpec;
pub use crate::EinsumSubscripts;
pub use crate::Spec;
pub use crate::TensorDotAxes;
pub use crate::TensordotOps;
pub use crate::TracedEinsumOps;
pub use crate::TracedTensordotOps;
pub use crate::EagerEinsumOps;

Structs§

EagerRuntime
Shared eager execution context for tensors on a backend.
EagerTensor
Eager tensor with reverse-mode autodiff over concrete tensor values.
Tensor
Dynamic tensor over the supported scalar types.
TraceContext
Shared, cloneable handle to one mutable semantic trace.
TracedTensor
A typed view of one semantic value inside a TraceContext.
TypedTensor
Owned compact column-major typed tensor.
TypedTensorView
Read-only borrowed view of typed tensor storage with arbitrary strides.

Enums§

Conj
Whether an operand enters an operation conjugated. Conjugation is operation configuration, so it lives in the operation’s options, never in Dest.
DType
Runtime scalar dtype tag.
Dest
Where an _into operation writes, and how it combines with what is there.
TensorRead
Read-only tensor input accepted by synchronous eager kernels.
TensorView
Dynamic read-only borrowed tensor view.
TensorWrite
Mutable tensor output accepted by synchronous eager kernels.
TypedTensorWrite
Mutable typed tensor output accepted by synchronous eager kernels.

Traits§

TensorScalar
Sealed trait for scalar types that can be stored in a Tensor.