We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi while testing the installation. I encountered the following error:
python main.py data/obama/ --workspace trial_obama/ -O --test --ckpt trial_obama/checkpoints/ngp.pth
/opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate: 'decltype(auto) torch::nn::detail::ConvNdOptions<D>::padding(std::initializer_list<long int>) [with long unsigned int D = 2]' 64 | decltype(auto) padding(std::initializer_list<int64_t> il) { | ^~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'const torch::ExpandingArray<D>& torch::nn::ConvTransposeNdImpl<D, Derived>::padding() const [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:288:23: required from 'void torch::nn::ConvTransposeNdImpl<D, Derived>::pretty_print(std::ostream&) const [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl; std::ostream = std::basic_ostream<char>]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:282:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:313:61: error: no matching function for call to 'torch::nn::detail::ConvNdOptions<1>::padding() const' 313 | return std::get<ExpandingArray<D>>(this->options.padding()); | ~~~~~~~~~~~~~~~~~~~~~^~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate: 'decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) torch::nn::detail::ConvNdOptions<D>::padding(const int&) [with long unsigned int D = 1; decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) = torch::nn::detail::ConvNdOptions<1>&]' 61 | TORCH_ARG(padding_t, padding) = 0; | ^~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate: 'decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) torch::nn::detail::ConvNdOptions<D>::padding(int&&) [with long unsigned int D = 1; decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) = torch::nn::detail::ConvNdOptions<1>&]' 61 | TORCH_ARG(padding_t, padding) = 0; | ^~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate: 'decltype(auto) torch::nn::detail::ConvNdOptions<D>::padding(std::initializer_list<long int>) [with long unsigned int D = 1]' 64 | decltype(auto) padding(std::initializer_list<int64_t> il) { | ^~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed.
Ubuntu Version : 22.04 [ Jammy ]
How do I solve this error? Thanks
The text was updated successfully, but these errors were encountered:
same problem. wsl ubuntu 22.04
Sorry, something went wrong.
No branches or pull requests
Hi while testing the installation. I encountered the following error:
python main.py data/obama/ --workspace trial_obama/ -O --test --ckpt trial_obama/checkpoints/ngp.pth
/opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate: 'decltype(auto) torch::nn::detail::ConvNdOptions<D>::padding(std::initializer_list<long int>) [with long unsigned int D = 2]' 64 | decltype(auto) padding(std::initializer_list<int64_t> il) { | ^~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::ConvTranspose2dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'const torch::ExpandingArray<D>& torch::nn::ConvTransposeNdImpl<D, Derived>::padding() const [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:288:23: required from 'void torch::nn::ConvTransposeNdImpl<D, Derived>::pretty_print(std::ostream&) const [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl; std::ostream = std::basic_ostream<char>]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:282:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:313:61: error: no matching function for call to 'torch::nn::detail::ConvNdOptions<1>::padding() const' 313 | return std::get<ExpandingArray<D>>(this->options.padding()); | ~~~~~~~~~~~~~~~~~~~~~^~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate: 'decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) torch::nn::detail::ConvNdOptions<D>::padding(const int&) [with long unsigned int D = 1; decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) = torch::nn::detail::ConvNdOptions<1>&]' 61 | TORCH_ARG(padding_t, padding) = 0; | ^~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate: 'decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) torch::nn::detail::ConvNdOptions<D>::padding(int&&) [with long unsigned int D = 1; decltype (*(torch::nn::detail::ConvNdOptions<D>*)this) = torch::nn::detail::ConvNdOptions<1>&]' 61 | TORCH_ARG(padding_t, padding) = 0; | ^~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:61:3: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate: 'decltype(auto) torch::nn::detail::ConvNdOptions<D>::padding(std::initializer_list<long int>) [with long unsigned int D = 1]' 64 | decltype(auto) padding(std::initializer_list<int64_t> il) { | ^~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:64:18: note: candidate expects 1 argument, 0 provided /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::ConvTranspose1dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 3; Derived = torch::nn::Conv3dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 2; Derived = torch::nn::Conv2dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h: In instantiation of 'void torch::nn::ConvNdImpl<D, Derived>::reset_parameters() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]': /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:101:5: required from 'void torch::nn::ConvNdImpl<D, Derived>::reset() [with long unsigned int D = 1; Derived = torch::nn::Conv1dImpl]' /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:33:8: required from here /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/conv.h:105:27: error: cannot convert 'const torch::enumtype::kFanIn' to 'int' 105 | init::kaiming_uniform_( | ~~~~~~~~~~~~~~~~~~~~~~^ | | | const torch::enumtype::kFanIn 106 | weight, | ~~~~~~~ 107 | /*a=*/std::sqrt(5)); // NOLINT(cppcoreguidelines-avoid-magic-numbers) | ~~~~~~~~~~~~~~~~~~~ /opt/conda/envs/ernerf/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/nn/init.h:99:17: note: initializing argument 3 of 'at::Tensor torch::nn::init::kaiming_uniform_(at::Tensor, double, int, int)' 99 | FanModeType mode = torch::kFanIn, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed.
Ubuntu Version : 22.04 [ Jammy ]
How do I solve this error?
Thanks
The text was updated successfully, but these errors were encountered: