38 x_shape =
stack_[0]->OutputShape(x_shape);
43 return stack_[0]->OutputShape(input_shape);
58 ReverseData(input, rev_input);
60 stack_[0]->Forward(debug, *rev_input,
nullptr, scratch, rev_output);
61 ReverseData(*rev_output, output);
70 ReverseData(fwd_deltas, rev_input);
73 ReverseData(*rev_output, back_deltas);
void CopyWithXReversal(const NetworkIO &src)
StaticShape OutputShape(const StaticShape &input_shape) const override
Reversed(const STRING &name, NetworkType type)
PointerVector< Network > stack_
virtual void AddToStack(Network *network)
void set_width(int value)
void CopyWithXYTranspose(const NetworkIO &src)
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
void SetNetwork(Network *network)
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
void set_height(int value)
void CopyWithYReversal(const NetworkIO &src)
void SetShape(int batch, int height, int width, int depth)