tfd ~master (2021-06-15T14:06:44Z)
Dub
Repo
TensorOwner.slicedAs
tfd
tensor
TensorOwner
Returns a tensor slice as same as a given slice with assertions.
struct
TensorOwner
Slice
!(
T
*,
N
,
Contiguous
)
slicedAs
(
Iterator
size_t
N
SliceKind
kind
T
=
typeof
(
Iterator.init
[0])
)
(
Slice
!(
Iterator
,
N
,
kind
)
slice
)
Meta
Source
See Implementation
tfd
tensor
TensorOwner
destructors
~this
functions
dataType
elementCount
ndim
payload
scalar
shape
sliced
slicedAs
postblits
this(this)
variables
base
Returns a tensor slice as same as a given slice with assertions.