1 #ifndef UPSAMPLE_EDGE_H_
2 #define UPSAMPLE_EDGE_H_
17 const int sample_factor_;
This class is intended to be used as a base class for implementing edges.
Definition: edge.h:13
Implements an up-sampling edge.
Definition: upsample_edge.h:8
A GPU matrix class.
Definition: matrix.h:11
virtual void ComputeDown(Matrix &deriv_output, Matrix &input, Matrix &output, Matrix &deriv_input, bool overwrite)
Computes the derivative w.r.t the inputs of this edge given the derivative w.r.t the outputs of this ...
Definition: upsample_edge.cc:22
virtual void SetImageSize(int image_size)
Set the spatial size of the input to this edge.
Definition: upsample_edge.cc:8
virtual void ComputeUp(Matrix &input, Matrix &output, bool overwrite)
Computes the output layer state given the input.
Definition: upsample_edge.cc:13