Docs.rs
rai-core-0.10.0
rai-core 0.10.0
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
cksac
Dependencies
candle-core ^0.4.1
normal
optional
candle-flash-attn ^0.4.1
normal
optional
colored ^2.1.0
normal
dyn-clone ^1.0.16
normal
half ^2.3.1
normal
num-traits ^0.2.17
normal
once_cell ^1.19.0
normal
paste ^1.0
normal
safetensors ^0.4.1
normal
thiserror ^1.0.51
normal
tracing ^0.1.40
normal
Versions
10.58%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
rai_core
0.10.0
ValueSpec
Required Associated Types
Gradient
Kind
Tensors
Implementations on Foreign Types
&'a T
()
(A, B)
(A, B, C)
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
(A, B, C, D, E, F, G)
(A, B, C, D, E, F, G, H)
(A, B, C, D, E, F, G, H, I)
(A, B, C, D, E, F, G, H, I, J)
(A, B, C, D, E, F, G, H, I, J, K)
(A, B, C, D, E, F, G, H, I, J, K, L)
(A,)
HashMap<usize, Tensor>
Option<()>
Option<bf16>
Option<bool>
Option<f16>
Option<f32>
Option<f64>
Option<i128>
Option<i16>
Option<i32>
Option<i64>
Option<i8>
Option<isize>
Option<u128>
Option<u16>
Option<u32>
Option<u64>
Option<u8>
Option<usize>
Result<(), E>
Result<bf16, E>
Result<bool, E>
Result<f16, E>
Result<f32, E>
Result<f64, E>
Result<i128, E>
Result<i16, E>
Result<i32, E>
Result<i64, E>
Result<i8, E>
Result<isize, E>
Result<u128, E>
Result<u16, E>
Result<u32, E>
Result<u64, E>
Result<u8, E>
Result<usize, E>
[T; N]
bf16
bool
f16
f32
f64
i128
i16
i32
i64
i8
isize
u128
u16
u32
u64
u8
usize
Implementors
In crate rai_core
?
Trait
rai_core
::
ValueSpec
source
·
[
−
]
pub trait ValueSpec { type
Kind
; type
Tensors
:
TensorIter
+ 'static; type
Gradient
; }
Required Associated Types
§
source
type
Kind
source
type
Tensors
:
TensorIter
+ 'static
source
type
Gradient
Implementations on Foreign Types
§
source
§
impl
ValueSpec
for
Option
<
bool
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
f32
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
f64
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
i8
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
i16
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
i32
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
i64
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
i128
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
isize
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
u8
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
u16
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
u32
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
u64
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
u128
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
()
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
usize
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
bf16
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
Option
<
f16
>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
bool
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
f32
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
f64
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
i8
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
i16
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
i32
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
i64
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
i128
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
isize
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
u8
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
u16
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
u32
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
u64
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
u128
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
()
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
usize
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
HashMap
<
usize
,
Tensor
>
§
type
Kind
=
Basic
§
type
Tensors
=
HashMap
<
usize
,
Tensor
>
§
type
Gradient
=
HashMap
<
usize
,
Tensor
>
source
§
impl
ValueSpec
for
bf16
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl
ValueSpec
for
f16
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<'a, T>
ValueSpec
for
&'a T
where T:
ValueSpec
,
§
type
Kind
= <T as
ValueSpec
>::
Kind
§
type
Tensors
= <T as
ValueSpec
>::
Tensors
§
type
Gradient
= <T as
ValueSpec
>::
Gradient
source
§
impl<A>
ValueSpec
for
(A,)
where A:
Value
, A::
Tensors
:
TensorIter
,
§
type
Kind
=
Tuple
<
(A,)
>
§
type
Tensors
= <A as
ValueSpec
>::
Tensors
§
type
Gradient
= <A as
ValueSpec
>::
Gradient
source
§
impl<A, B>
ValueSpec
for
(A, B)
where A:
Value
, B:
Value
, (A::
Tensors
, B::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C>
ValueSpec
for
(A, B, C)
where A:
Value
, B:
Value
, C:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D>
ValueSpec
for
(A, B, C, D)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E>
ValueSpec
for
(A, B, C, D, E)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F>
ValueSpec
for
(A, B, C, D, E, F)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F, G>
ValueSpec
for
(A, B, C, D, E, F, G)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, G:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
, G::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F, G)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
, <G as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
, <G as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F, G, H>
ValueSpec
for
(A, B, C, D, E, F, G, H)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, G:
Value
, H:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
, G::
Tensors
, H::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F, G, H)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
, <G as
ValueSpec
>::
Tensors
, <H as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
, <G as
ValueSpec
>::
Gradient
, <H as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F, G, H, I>
ValueSpec
for
(A, B, C, D, E, F, G, H, I)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, G:
Value
, H:
Value
, I:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
, G::
Tensors
, H::
Tensors
, I::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F, G, H, I)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
, <G as
ValueSpec
>::
Tensors
, <H as
ValueSpec
>::
Tensors
, <I as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
, <G as
ValueSpec
>::
Gradient
, <H as
ValueSpec
>::
Gradient
, <I as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F, G, H, I, J>
ValueSpec
for
(A, B, C, D, E, F, G, H, I, J)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, G:
Value
, H:
Value
, I:
Value
, J:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
, G::
Tensors
, H::
Tensors
, I::
Tensors
, J::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F, G, H, I, J)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
, <G as
ValueSpec
>::
Tensors
, <H as
ValueSpec
>::
Tensors
, <I as
ValueSpec
>::
Tensors
, <J as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
, <G as
ValueSpec
>::
Gradient
, <H as
ValueSpec
>::
Gradient
, <I as
ValueSpec
>::
Gradient
, <J as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F, G, H, I, J, K>
ValueSpec
for
(A, B, C, D, E, F, G, H, I, J, K)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, G:
Value
, H:
Value
, I:
Value
, J:
Value
, K:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
, G::
Tensors
, H::
Tensors
, I::
Tensors
, J::
Tensors
, K::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F, G, H, I, J, K)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
, <G as
ValueSpec
>::
Tensors
, <H as
ValueSpec
>::
Tensors
, <I as
ValueSpec
>::
Tensors
, <J as
ValueSpec
>::
Tensors
, <K as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
, <G as
ValueSpec
>::
Gradient
, <H as
ValueSpec
>::
Gradient
, <I as
ValueSpec
>::
Gradient
, <J as
ValueSpec
>::
Gradient
, <K as
ValueSpec
>::
Gradient
)
source
§
impl<A, B, C, D, E, F, G, H, I, J, K, L>
ValueSpec
for
(A, B, C, D, E, F, G, H, I, J, K, L)
where A:
Value
, B:
Value
, C:
Value
, D:
Value
, E:
Value
, F:
Value
, G:
Value
, H:
Value
, I:
Value
, J:
Value
, K:
Value
, L:
Value
, (A::
Tensors
, B::
Tensors
, C::
Tensors
, D::
Tensors
, E::
Tensors
, F::
Tensors
, G::
Tensors
, H::
Tensors
, I::
Tensors
, J::
Tensors
, K::
Tensors
, L::
Tensors
):
TensorIter
,
§
type
Kind
=
Tuple
<
(A, B, C, D, E, F, G, H, I, J, K, L)
>
§
type
Tensors
= (<A as
ValueSpec
>::
Tensors
, <B as
ValueSpec
>::
Tensors
, <C as
ValueSpec
>::
Tensors
, <D as
ValueSpec
>::
Tensors
, <E as
ValueSpec
>::
Tensors
, <F as
ValueSpec
>::
Tensors
, <G as
ValueSpec
>::
Tensors
, <H as
ValueSpec
>::
Tensors
, <I as
ValueSpec
>::
Tensors
, <J as
ValueSpec
>::
Tensors
, <K as
ValueSpec
>::
Tensors
, <L as
ValueSpec
>::
Tensors
)
§
type
Gradient
= (<A as
ValueSpec
>::
Gradient
, <B as
ValueSpec
>::
Gradient
, <C as
ValueSpec
>::
Gradient
, <D as
ValueSpec
>::
Gradient
, <E as
ValueSpec
>::
Gradient
, <F as
ValueSpec
>::
Gradient
, <G as
ValueSpec
>::
Gradient
, <H as
ValueSpec
>::
Gradient
, <I as
ValueSpec
>::
Gradient
, <J as
ValueSpec
>::
Gradient
, <K as
ValueSpec
>::
Gradient
, <L as
ValueSpec
>::
Gradient
)
source
§
impl<E>
ValueSpec
for
Result
<
bool
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
f32
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
f64
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
i8
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
i16
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
i32
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
i64
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
i128
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
isize
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
u8
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
u16
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
u32
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
u64
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
u128
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
()
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
usize
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
bf16
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<E>
ValueSpec
for
Result
<
f16
, E>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()
source
§
impl<const N:
usize
, T>
ValueSpec
for
[T; N]
where T:
Value
, [T::
Tensors
;
N
]:
TensorIter
,
§
type
Kind
=
Array
<
[T; N]
>
§
type
Tensors
= [<T as
ValueSpec
>::
Tensors
;
N
]
§
type
Gradient
= [<T as
ValueSpec
>::
Gradient
;
N
]
Implementors
§
source
§
impl
ValueSpec
for
Tensor
§
type
Kind
=
Basic
§
type
Tensors
=
Tensor
§
type
Gradient
=
Tensor
source
§
impl<T>
ValueSpec
for
Aux
<T>
§
type
Kind
=
Basic
§
type
Tensors
=
()
§
type
Gradient
=
()