Hi, thanks for the quick reply. Unfortunately this doesn’t seem to work. Here’s the new traceback for the solution you proposed
[ 50%] Building CXX object CMakeFiles/OpenFace.dir/Template.cpp.o
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:17:0:
/home/satrajit-c/Documents/My_Projects/OpenFace/baseModel.h: In constructor ‘BP4DIntensity::BP4DIntensity()’:
/home/satrajit-c/Documents/My_Projects/OpenFace/baseModel.h:27:45: error: no matching function for call to ‘torch::nn::Functional::Functional(at::Tensor (&)(const at::Tensor&, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, bool), <brace-enclosed initializer list>)’
             nn::Functional(max_pool2d, {2,2}),
                                             ^
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/module.h:3:0,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:7:
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:53:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::nullptr_t) [with Contained = torch::nn::FunctionalImpl; std::nullptr_t = std::nullptr_t]
   /* implicit */ ModuleHolder(std::nullptr_t) : impl_(nullptr) {}
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:63:12: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(Head&&, Tail&& ...) [with Head = Head; Tail = {Tail ...}; <template-parameter-2-3> = <template-parameter-1-3>; Contained = torch::nn::FunctionalImpl]
   explicit ModuleHolder(Head&& head, Tail&&... tail)
            ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:70:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::shared_ptr<_Tp>) [with Contained = torch::nn::FunctionalImpl]
   /* implicit */ ModuleHolder(std::shared_ptr<Contained> module)
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(const torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional()
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 0 arguments, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(const torch::nn::Functional&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(torch::nn::Functional&&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:17:0:
/home/satrajit-c/Documents/My_Projects/OpenFace/baseModel.h:32:45: error: no matching function for call to ‘torch::nn::Functional::Functional(at::Tensor (&)(const at::Tensor&, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, bool), <brace-enclosed initializer list>)’
             nn::Functional(max_pool2d, {2,2}),
                                             ^
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/module.h:3:0,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:7:
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:53:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::nullptr_t) [with Contained = torch::nn::FunctionalImpl; std::nullptr_t = std::nullptr_t]
   /* implicit */ ModuleHolder(std::nullptr_t) : impl_(nullptr) {}
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:63:12: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(Head&&, Tail&& ...) [with Head = Head; Tail = {Tail ...}; <template-parameter-2-3> = <template-parameter-1-3>; Contained = torch::nn::FunctionalImpl]
   explicit ModuleHolder(Head&& head, Tail&&... tail)
            ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:70:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::shared_ptr<_Tp>) [with Contained = torch::nn::FunctionalImpl]
   /* implicit */ ModuleHolder(std::shared_ptr<Contained> module)
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(const torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional()
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 0 arguments, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(const torch::nn::Functional&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(torch::nn::Functional&&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:17:0:
/home/satrajit-c/Documents/My_Projects/OpenFace/baseModel.h:39:45: error: no matching function for call to ‘torch::nn::Functional::Functional(at::Tensor (&)(const at::Tensor&, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, bool), <brace-enclosed initializer list>)’
             nn::Functional(max_pool2d, {2,2}),
                                             ^
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/module.h:3:0,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:7:
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:53:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::nullptr_t) [with Contained = torch::nn::FunctionalImpl; std::nullptr_t = std::nullptr_t]
   /* implicit */ ModuleHolder(std::nullptr_t) : impl_(nullptr) {}
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:63:12: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(Head&&, Tail&& ...) [with Head = Head; Tail = {Tail ...}; <template-parameter-2-3> = <template-parameter-1-3>; Contained = torch::nn::FunctionalImpl]
   explicit ModuleHolder(Head&& head, Tail&&... tail)
            ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:70:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::shared_ptr<_Tp>) [with Contained = torch::nn::FunctionalImpl]
   /* implicit */ ModuleHolder(std::shared_ptr<Contained> module)
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(const torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional()
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 0 arguments, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(const torch::nn::Functional&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(torch::nn::Functional&&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:17:0:
/home/satrajit-c/Documents/My_Projects/OpenFace/baseModel.h:46:45: error: no matching function for call to ‘torch::nn::Functional::Functional(at::Tensor (&)(const at::Tensor&, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, bool), <brace-enclosed initializer list>)’
             nn::Functional(max_pool2d, {2,2}),
                                             ^
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/module.h:3:0,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:7:
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:53:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::nullptr_t) [with Contained = torch::nn::FunctionalImpl; std::nullptr_t = std::nullptr_t]
   /* implicit */ ModuleHolder(std::nullptr_t) : impl_(nullptr) {}
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:63:12: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(Head&&, Tail&& ...) [with Head = Head; Tail = {Tail ...}; <template-parameter-2-3> = <template-parameter-1-3>; Contained = torch::nn::FunctionalImpl]
   explicit ModuleHolder(Head&& head, Tail&&... tail)
            ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:70:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::shared_ptr<_Tp>) [with Contained = torch::nn::FunctionalImpl]
   /* implicit */ ModuleHolder(std::shared_ptr<Contained> module)
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(const torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional()
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 0 arguments, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(const torch::nn::Functional&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(torch::nn::Functional&&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:17:0:
/home/satrajit-c/Documents/My_Projects/OpenFace/baseModel.h:51:45: error: no matching function for call to ‘torch::nn::Functional::Functional(at::Tensor (&)(const at::Tensor&, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, c10::IntArrayRef, bool), <brace-enclosed initializer list>)’
             nn::Functional(max_pool2d, {2,2})
                                             ^
In file included from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/module.h:3:0,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/all.h:7,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/satrajit-c/Documents/My_Projects/OpenFace/Template.cpp:7:
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:53:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::nullptr_t) [with Contained = torch::nn::FunctionalImpl; std::nullptr_t = std::nullptr_t]
   /* implicit */ ModuleHolder(std::nullptr_t) : impl_(nullptr) {}
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:63:12: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(Head&&, Tail&& ...) [with Head = Head; Tail = {Tail ...}; <template-parameter-2-3> = <template-parameter-1-3>; Contained = torch::nn::FunctionalImpl]
   explicit ModuleHolder(Head&& head, Tail&&... tail)
            ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:70:18: note: candidate: torch::nn::ModuleHolder<Contained>::ModuleHolder(std::shared_ptr<_Tp>) [with Contained = torch::nn::FunctionalImpl]
   /* implicit */ ModuleHolder(std::shared_ptr<Contained> module)
                  ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(const torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/pimpl.h:26:7: note: candidate: torch::nn::ModuleHolder<torch::nn::FunctionalImpl>::ModuleHolder(torch::nn::ModuleHolder<torch::nn::FunctionalImpl>&&)
 class ModuleHolder : torch::detail::ModuleHolderIndicator {
       ^~~~~~~~~~~~
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   inherited here
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional()
 TORCH_MODULE(Functional);
 ^
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 0 arguments, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(const torch::nn::Functional&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note: candidate: torch::nn::Functional::Functional(torch::nn::Functional&&)
/home/satrajit-c/Documents/My_Projects/OpenFace/libtorch/include/torch/csrc/api/include/torch/nn/modules/container/functional.h:101:1: note:   candidate expects 1 argument, 2 provided
CMakeFiles/OpenFace.dir/build.make:62: recipe for target 'CMakeFiles/OpenFace.dir/Template.cpp.o' failed
make[2]: *** [CMakeFiles/OpenFace.dir/Template.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OpenFace.dir/all' failed
make[1]: *** [CMakeFiles/OpenFace.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2