39 if(l.
reverse) fprintf(stderr,
"downsample %2dx %4d x%4d x%4d -> %4d x%4d x%4d\n", stride, w, h, c, l.
out_w, l.
out_h, l.
out_c);
40 else fprintf(stderr,
"upsample %2dx %4d x%4d x%4d -> %4d x%4d x%4d\n", stride, w, h, c, l.
out_w, l.
out_h, l.
out_c);
60 cuda_free(l->output_gpu);
61 cuda_free(l->delta_gpu);
98 void backward_upsample_layer_gpu(
const layer l,
network net)
void forward_upsample_layer(const layer l, network net)
void(* forward_gpu)(struct layer, struct network)
void(* backward_gpu)(struct layer, struct network)
void(* forward)(struct layer, struct network)
void upsample_gpu(float *in, int w, int h, int c, int batch, int stride, int forward, float scale, float *out)
void fill_gpu(int N, float ALPHA, float *X, int INCX)
void fill_cpu(int N, float ALPHA, float *X, int INCX)
void backward_upsample_layer(const layer l, network net)
void(* backward)(struct layer, struct network)
void upsample_cpu(float *in, int w, int h, int c, int batch, int stride, int forward, float scale, float *out)
void resize_upsample_layer(layer *l, int w, int h)
layer make_upsample_layer(int batch, int w, int h, int c, int stride)