- Companion
- class
Type members
Types
Apply a folding function to the elements of a Shape
Type-level representation of def foldLeft[B](z: B)(op: (B, A) => B): B
Apply a folding function to the elements of a Shape
Type-level representation of def foldLeft[B](z: B)(op: (B, A) => B): B
- Type Params
- B
Return type of the operation
- F
Function taking an accumulator of type B, and an element of type Int, returning B
- X
Shape to fold over
- Z
Zero element
Apply a function to elements of a Shape.
Type-level representation of def map(f: (A) => A): List[A]
Apply a function to elements of a Shape.
Type-level representation of def map(f: (A) => A): List[A]
- Type Params
- F
Function taking an value of the Shape, returning another value
- X
Shape to map over
Represents reduction along axes, as defined in TensorFlow:
Represents reduction along axes, as defined in TensorFlow:
- None means reduce along all axes
- List of indices contain which indices in the shape to remove
- Empty list of indices means reduce along nothing
- Type Params
- Axes
List of indices to reduce along.
one
if reduction should be done along all axes.SNil
if no reduction should be done.- S
Shape to reduce
Remove the element at index I
in RemoveFrom
.
Remove the element at index I
in RemoveFrom
.
- Type Params
- I
Index to remove
- RemoveFrom
Shape to remove from