Fork me on GitHub

src/arraymancer/autograd/gates_shapeshifting_views

  Source Edit

Types

ReshapeGate[TT] {.final.} = ref object of Gate[TT]
  Source Edit

Procs

proc flatten[TT](a: Variable[TT]): Variable[TT]
Input:
  • A variable
  Source Edit
proc reshape[TT](a: Variable[TT]; shape: Metadata): Variable[TT]
Input:
  • A variable
  • A shape
  Source Edit
proc reshape[TT](a: Variable[TT]; shape: varargs[int]): Variable[TT]
Input:
  • A variable
  • A shape
  Source Edit
proc squeeze[TT](v`gensym0: Variable[TT]; axis`gensym0: Natural): Variable[TT]
  Source Edit
proc unsqueeze[TT](v`gensym1: Variable[TT]; axis`gensym1: Natural): Variable[TT]
  Source Edit

Templates

template `[]`[TT](v: Variable[TT]; args: varargs[untyped]): Variable[TT]
Slice the tensor contained by the dynamic graph Variable Input:
  • a Variable

Output:

  • a sliced Variable
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood