diff --git a/include/lbann/layers/transform/upsample.hpp b/include/lbann/layers/transform/upsample.hpp index 0c8d40c091..03dfae474f 100644 --- a/include/lbann/layers/transform/upsample.hpp +++ b/include/lbann/layers/transform/upsample.hpp @@ -36,7 +36,6 @@ #include "lbann/utils/dnn_lib/upsample.hpp" #endif // LBANN_HAS_DNN_LIB #include "lbann/utils/exception.hpp" -#include "lbann/utils/im2col.hpp" #include #include @@ -261,18 +260,12 @@ class upsample_layer : public data_type_layer void bp_compute() override; private: - /// Pooling forward propagation with DNN library + /// Upsample forward propagation with DNN library void fp_compute_dnn(); - /// Pooling backward propagation with DNN library + /// Upsample backward propagation with DNN library void bp_compute_dnn(); - /// Pooling forward propagation with im2col - void fp_compute_im2col(); - - /// Pooling forward propagation with im2col - void bp_compute_im2col(); - #ifdef LBANN_HAS_DISTCONV friend class upsample_distconv_adapter; diff --git a/src/layers/transform/upsample.cpp b/src/layers/transform/upsample.cpp index 05a9f6701a..4d6778347b 100644 --- a/src/layers/transform/upsample.cpp +++ b/src/layers/transform/upsample.cpp @@ -60,6 +60,7 @@ struct Builder } }; +#ifdef LBANN_HAS_GPU template struct Builder { @@ -72,6 +73,7 @@ struct Builder return std::make_unique(std::forward(args)...); } }; +#endif // LBANN_HAS_GPU } // namespace template @@ -110,7 +112,7 @@ void upsample_layer::bp_compute() } } -/// Pooling forward propagation with DNN library +/// Upsample forward propagation with DNN library template void upsample_layer::fp_compute_dnn() { @@ -134,7 +136,7 @@ void upsample_layer::fp_compute_dnn() #endif // #ifndef LBANN_HAS_DNN_LIB } -/// Pooling backward propagation with DNN library +/// Upsample backward propagation with DNN library template void upsample_layer::bp_compute_dnn() {