Skip to content
New issue

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

Setting up PyTorch plugin "bias_act_plugin"... Failed! #124

Open
ivanstake opened this issue Feb 12, 2022 · 20 comments
Open

Setting up PyTorch plugin "bias_act_plugin"... Failed! #124

ivanstake opened this issue Feb 12, 2022 · 20 comments

Comments

@ivanstake
Copy link

When I execute this code:
python gen_images.py --outdir=out --trunc=1 --seeds=2 \ --network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl

I get the error Setting up PyTorch plugin "bias_act_plugin"... Failed!

I was following this tutorial https://www.youtube.com/watch?v=nmBw47ogP6w and I was doing great untill this point just before executing stylegan.

Im using a conda enviroment with pytorch cuda 11.3 windows 11 python 3.8... Need help D:

@entmike
Copy link

entmike commented Feb 17, 2022

Did you install the Visual Studio C++ libs are run the vcvars batch file? Those are key or you will get that error.

@adrienchaton
Copy link

I struggled to get it working on windows, although I had installed VS C++ tools and having other codes running without issues on GPU. I haven't watched that video but you can check my issue, using conda to setup the env helped and in case it still fails, deleting the cache of previous build attempts cf. the troubleshooting document.
As far as I remember I needed to tweak a little the env .yml e.g. adding conda-forge channel.

@felkoh
Copy link

felkoh commented Feb 24, 2022

I'm also getting this error and have been struggling with it for months now. I've tried many different versions of pytorch, Cuda toolkit, visual studio and NVIDIA drivers from following people's advice, however, am still unable to get it working. Any help would be much appreciated.

Error:
Setting up PyTorch plugin "bias_act_plugin"... Failed!
Traceback (most recent call last):
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1717, in _run_ninja_build
subprocess.run(
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\felix\felix_art\stylegan3\gen_images.py", line 143, in
generate_images() # pylint: disable=no-value-for-parameter
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 754, in invoke
return callback(*args, **kwargs)
File "C:\Users\felix\felix_art\stylegan3\gen_images.py", line 135, in generate_images
img = G(z, label, truncation_psi=truncation_psi, noise_mode=noise_mode)
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\nn\modules\module.py", line 1102, in call_impl
return forward_call(*input, **kwargs)
File "", line 503, in forward
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\nn\modules\module.py", line 1102, in call_impl
return forward_call(*input, **kwargs)
File "", line 143, in forward
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\nn\modules\module.py", line 1102, in call_impl
return forward_call(*input, **kwargs)
File "", line 92, in forward
File "C:\Users\felix\felix_art\stylegan3\torch_utils\ops\bias_act.py", line 84, in bias_act
if impl == 'cuda' and x.device.type == 'cuda' and init():
File "C:\Users\felix\felix_art\stylegan3\torch_utils\ops\bias_act.py", line 41, in init
plugin = custom_ops.get_plugin(
File "C:\Users\felix\felix_art\stylegan3\torch_utils\custom_ops.py", line 136, in get_plugin
torch.utils.cpp_extension.load(name=module_name, build_directory=cached_build_dir,
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1124, in load
return jit_compile(
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1337, in jit_compile
write_ninja_file_and_build_library(
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1449, in write_ninja_file_and_build_library
run_ninja_build(
File "C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1733, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'bias_act_plugin': [1/3] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\bin\nvcc --generate-dependencies-with-compile --dependency-output bias_act.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\TH -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include" -IC:\Users\felix\anaconda3\envs\stylegan3\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use_fast_math -c C:\Users\felix\AppData\Local\torch_extensions\torch_extensions\Cache\py39_cu113\bias_act_plugin\d197188c6eb43b2685156af41c1c4adc-nvidia-geforce-rtx-3080-laptop-gpu\bias_act.cu -o bias_act.cuda.o
FAILED: bias_act.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\bin\nvcc --generate-dependencies-with-compile --dependency-output bias_act.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\TH -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include" -IC:\Users\felix\anaconda3\envs\stylegan3\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use_fast_math -c C:\Users\felix\AppData\Local\torch_extensions\torch_extensions\Cache\py39_cu113\bias_act_plugin\d197188c6eb43b2685156af41c1c4adc-nvidia-geforce-rtx-3080-laptop-gpu\bias_act.cu -o bias_act.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include\crt/host_config.h(160): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
bias_act.cu
[2/3] cl /showIncludes -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\TH -IC:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.5\include" -IC:\Users\felix\anaconda3\envs\stylegan3\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -c C:\Users\felix\AppData\Local\torch_extensions\torch_extensions\Cache\py39_cu113\bias_act_plugin\d197188c6eb43b2685156af41c1c4adc-nvidia-geforce-rtx-3080-laptop-gpu\bias_act.cpp /Fobias_act.o
Microsoft (R) C/C++ Optimizing Compiler Version 19.30.30705 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::TensorBase
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::TensorBase
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=at::TensorBase
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBaseat::TensorBase' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/TensorBase.h(899): note: see reference to class template instantiation 'c10::optionalat::TensorBase' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::TensorBase
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBaseat::Tensor' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/TensorBody.h(444): note: see reference to class template instantiation 'c10::optionalat::Tensor' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::Generator
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::Generator
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=at::Generator
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBaseat::Generator' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/TensorBody.h(518): note: see reference to class template instantiation 'c10::optionalat::Generator' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::Generator
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineDeviceGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::InlineDeviceGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::InlineDeviceGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::InlineDeviceGuardc10::impl::VirtualGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/impl/InlineDeviceGuard.h(427): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineDeviceGuardc10::impl::VirtualGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/DeviceGuard.h(178): note: see reference to class template instantiation 'c10::impl::InlineOptionalDeviceGuardc10::impl::VirtualGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineDeviceGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::DimVector
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::DimVector
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=at::DimVector
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBaseat::DimVector' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/TensorIterator.h(667): note: see reference to class template instantiation 'c10::optionalat::DimVector' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::DimVector
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::string
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::string
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::string
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasestd::string' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type_base.h(108): note: see reference to class template instantiation 'c10::optionalstd::string' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::string
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineStreamGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::InlineStreamGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::InlineStreamGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::InlineStreamGuardc10::impl::VirtualGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(196): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineStreamGuardc10::impl::VirtualGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/StreamGuard.h(139): note: see reference to class template instantiation 'c10::impl::InlineOptionalStreamGuardc10::impl::VirtualGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineStreamGuardc10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::impl::VirtualGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(231): note: see reference to class template instantiation 'c10::optional' being compiled
with
[
T=c10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/StreamGuard.h(162): note: see reference to class template instantiation 'c10::impl::InlineMultiStreamGuardc10::impl::VirtualGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::VirtualGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::ivalue::Future::WeakStorage,std::allocatorc10::ivalue::Future::WeakStorage>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<c10::ivalue::Future::WeakStorage,std::allocatorc10::ivalue::Future::WeakStorage>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<c10::ivalue::Future::WeakStorage,std::allocatorc10::ivalue::Future::WeakStorage>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::ivalue::Future::WeakStorage,std::allocatorc10::ivalue::Future::WeakStorage>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(374): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ivalue::Future::WeakStorage,std::allocatorc10::ivalue::Future::WeakStorage>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::ivalue::Future::WeakStorage,std::allocatorc10::ivalue::Future::WeakStorage>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::ShapeSymbol,std::allocatorc10::ShapeSymbol>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<c10::ShapeSymbol,std::allocatorc10::ShapeSymbol>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<c10::ShapeSymbol,std::allocatorc10::ShapeSymbol>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::ShapeSymbol,std::allocatorc10::ShapeSymbol>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(426): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ShapeSymbol,std::allocatorc10::ShapeSymbol>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::ShapeSymbol,std::allocatorc10::ShapeSymbol>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::optionalc10::Stride,std::allocator<c10::optionalc10::Stride>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<c10::optionalc10::Stride,std::allocator<c10::optionalc10::Stride>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<c10::optionalc10::Stride,std::allocator<c10::optionalc10::Stride>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::optionalc10::Stride,std::allocator<c10::optionalc10::Stride>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(511): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optionalc10::Stride,std::allocator<c10::optionalc10::Stride>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(750): note: see reference to class template instantiation 'c10::VaryingShapec10::Stride' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::optionalc10::Stride,std::allocator<c10::optionalc10::Stride>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(511): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(556): note: see reference to class template instantiation 'c10::VaryingShape<int64_t>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<int64_t,std::allocator<int64_t>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<int64_t,std::allocator<int64_t>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<int64_t,std::allocator<int64_t>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<int64_t,std::allocator<int64_t>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(654): note: see reference to class template instantiation 'c10::optional<std::vector<int64_t,std::allocator<int64_t>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<int64_t,std::allocator<int64_t>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::QualifiedName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::QualifiedName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::QualifiedName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::QualifiedName' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/jit_type.h(990): note: see reference to class template instantiation 'c10::optionalc10::QualifiedName' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::QualifiedName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::autograd::ViewInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::autograd::ViewInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::autograd::ViewInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::autograd::ViewInfo' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(525): note: see reference to class template instantiation 'c10::optionaltorch::autograd::ViewInfo' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::autograd::ViewInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::IValue
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::IValue
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::IValue
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::IValue' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/function_schema.h(124): note: see reference to class template instantiation 'c10::optionalc10::IValue' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::IValue
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::AliasInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::AliasInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::AliasInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::AliasInfo' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/function_schema.h(125): note: see reference to class template instantiation 'c10::optionalc10::AliasInfo' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::AliasInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::tuplestd::string,size_t,size_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::tuplestd::string,size_t,size_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::tuplestd::string,size_t,size_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::tuplestd::string,size_t,size_t>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/frontend/source_range.h(146): note: see reference to class template instantiation 'c10::optional<std::tuplestd::string,size_t,size_t>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::tuplestd::string,size_t,size_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::jit::SourceRange
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::jit::SourceRange
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::jit::SourceRange
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::jit::SourceRange' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/frontend/source_range.h(169): note: see reference to class template instantiation 'c10::optionaltorch::jit::SourceRange' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::jit::SourceRange
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::jit::InlinedCallStackPtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::jit::InlinedCallStackPtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::jit::InlinedCallStackPtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::jit::InlinedCallStackPtr' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/ir/scope.h(127): note: see reference to class template instantiation 'c10::optionaltorch::jit::InlinedCallStackPtr' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::jit::InlinedCallStackPtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::jit::ModuleInstanceInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::jit::ModuleInstanceInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::jit::ModuleInstanceInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::jit::ModuleInstanceInfo' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/ir/scope.h(140): note: see reference to class template instantiation 'c10::optionaltorch::jit::ModuleInstanceInfo' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::jit::ModuleInstanceInfo
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::jit::ScopePtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::jit::ScopePtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::jit::ScopePtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::jit::ScopePtr' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/ir/constants.h(29): note: see reference to class template instantiation 'c10::optionaltorch::jit::ScopePtr' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::jit::ScopePtr
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::AnnotatedSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::AnnotatedSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::AnnotatedSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::impl::AnnotatedSchema' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/dispatch/OperatorEntry.h(193): note: see reference to class template instantiation 'c10::optionalc10::impl::AnnotatedSchema' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::AnnotatedSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::OperatorEntry::CppSignatureWithDebug
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::OperatorEntry::CppSignatureWithDebug
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::OperatorEntry::CppSignatureWithDebug
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::impl::OperatorEntry::CppSignatureWithDebug' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/dispatch/OperatorEntry.h(252): note: see reference to class template instantiation 'c10::optionalc10::impl::OperatorEntry::CppSignatureWithDebug' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::OperatorEntry::CppSignatureWithDebug
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::OperatorName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::OperatorName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::OperatorName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::OperatorName' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/record_function.h(320): note: see reference to class template instantiation 'c10::optionalc10::OperatorName' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::OperatorName
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::eitherc10::OperatorName,c10::FunctionSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::eitherc10::OperatorName,c10::FunctionSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::eitherc10::OperatorName,c10::FunctionSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<c10::eitherc10::OperatorName,c10::FunctionSchema>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\ATen/core/op_registration/op_registration.h(434): note: see reference to class template instantiation 'c10::optional<c10::eitherc10::OperatorName,c10::FunctionSchema>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::eitherc10::OperatorName,c10::FunctionSchema
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::ThreadLocalState
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::ThreadLocalState
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=at::ThreadLocalState
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBaseat::ThreadLocalState' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/runtime/interpreter.h(144): note: see reference to class template instantiation 'c10::optionalat::ThreadLocalState' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::ThreadLocalState
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::shared_ptrtorch::jit::Graph
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::shared_ptrtorch::jit::Graph
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::shared_ptrtorch::jit::Graph
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::shared_ptrtorch::jit::Graph>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/api/function_impl.h(125): note: see reference to class template instantiation 'c10::optional<std::shared_ptrtorch::jit::Graph>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::shared_ptrtorch::jit::Graph
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::jit::Method
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::jit::Method
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::jit::Method
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::jit::Method' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/api/object.h(43): note: see reference to class template instantiation 'c10::optionaltorch::jit::Method' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::jit::Method
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<std::string,std::allocatorstd::string>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<std::string,std::allocatorstd::string>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<std::string,std::allocatorstd::string>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<std::string,std::allocatorstd::string>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/jit/api/module.h(296): note: see reference to class template instantiation 'c10::optional<std::vector<std::string,std::allocatorstd::string>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<std::string,std::allocatorstd::string>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasetorch::nn::TripletMarginWithDistanceLossOptions::distance_function_t' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/loss.h(404): note: see reference to class template instantiation 'c10::optionaltorch::nn::TripletMarginWithDistanceLossOptions::distance_function_t' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=torch::nn::TripletMarginWithDistanceLossOptions::distance_function_t
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<double,std::allocator>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<double,std::allocator>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<double,std::allocator>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<T,std::allocator>>' being compiled
with
[
T=double
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/upsampling.h(26): note: see reference to class template instantiation 'c10::optional<std::vector<T,std::allocator>>' being compiled
with
[
T=double
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<double,std::allocator>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::tupleat::Tensor,at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::tupleat::Tensor,at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::tupleat::Tensor,at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::tupleat::Tensor,at::Tensor>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(155): note: see reference to class template instantiation 'c10::optional<std::tupleat::Tensor,at::Tensor>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::tupleat::Tensor,at::Tensor
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::function<void (const torch::autograd::profiler::thread_event_lists &)>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::function<void (const torch::autograd::profiler::thread_event_lists &)>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::function<void (const torch::autograd::profiler::thread_event_lists &)>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::function<void (const torch::autograd::profiler::thread_event_lists &)>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/autograd/profiler_legacy.h(523): note: see reference to class template instantiation 'c10::optional<std::function<void (const torch::autograd::profiler::thread_event_lists &)>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::function<void (const torch::autograd::profiler::thread_event_lists &)>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>,std::allocator<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>,std::allocator<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>,std::allocator<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>,std::allocator<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/autograd/profiler_legacy.h(593): note: see reference to class template instantiation 'c10::optional<std::vector<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>,std::allocator<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>,std::allocator<std::vector<torch::autograd::profiler::LegacyEvent,std::allocatortorch::autograd::profiler::LegacyEvent>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<std::vector<int64_t,std::allocator<int64_t>>,std::allocator<std::vector<int64_t,std::allocator<int64_t>>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<std::vector<int64_t,std::allocator<int64_t>>,std::allocator<std::vector<int64_t,std::allocator<int64_t>>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<std::vector<int64_t,std::allocator<int64_t>>,std::allocator<std::vector<int64_t,std::allocator<int64_t>>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<std::vector<int64_t,std::allocator<int64_t>>,std::allocator<std::vector<int64_t,std::allocator<int64_t>>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/autograd/profiler_kineto.h(40): note: see reference to class template instantiation 'c10::optional<std::vector<std::vector<int64_t,std::allocator<int64_t>>,std::allocator<std::vector<int64_t,std::allocator<int64_t>>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<std::vector<int64_t,std::allocator<int64_t>>,std::allocator<std::vector<int64_t,std::allocator<int64_t>>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch/csrc/autograd/profiler_kineto.h(48): note: see reference to class template instantiation 'c10::optional<std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::unordered_map<std::string,c10::IValue,std::hashstd::string,std::equal_tostd::string,std::allocator<std::pair<const std::string,c10::IValue>>>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<at::Tensor,std::allocatorat::Tensor>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(46): note: see reference to class template instantiation 'c10::optional<std::vector<at::Tensor,std::allocatorat::Tensor>>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=std::vector<at::Tensor,std::allocatorat::Tensor>
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineDeviceGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::InlineDeviceGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::InlineDeviceGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::InlineDeviceGuardc10::cuda::impl::CUDAGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/impl/InlineDeviceGuard.h(427): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineDeviceGuardc10::cuda::impl::CUDAGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/cuda/CUDAGuard.h(140): note: see reference to class template instantiation 'c10::impl::InlineOptionalDeviceGuardc10::cuda::impl::CUDAGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineDeviceGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineStreamGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::impl::InlineStreamGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::impl::InlineStreamGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::InlineStreamGuardc10::cuda::impl::CUDAGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(196): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineStreamGuardc10::cuda::impl::CUDAGuardImpl>' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/cuda/CUDAGuard.h(273): note: see reference to class template instantiation 'c10::impl::InlineOptionalStreamGuardc10::cuda::impl::CUDAGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::impl::InlineStreamGuardc10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(184): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=c10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(383): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=c10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=c10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(526): note: see reference to alias template instantiation 'c10::OptionalBasec10::cuda::impl::CUDAGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(231): note: see reference to class template instantiation 'c10::optional' being compiled
with
[
T=c10::cuda::impl::CUDAGuardImpl
]
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/cuda/CUDAGuard.h(292): note: see reference to class template instantiation 'c10::impl::InlineMultiStreamGuardc10::cuda::impl::CUDAGuardImpl' being compiled
C:\Users\felix\anaconda3\envs\stylegan3\lib\site-packages\torch\include\c10/util/Optional.h(418): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=c10::cuda::impl::CUDAGuardImpl
]
ninja: build stopped: subcommand failed.

OS: Windows 10
PyTorch version 1.10.1+cu113
CUDA toolkit version CUDA 11.5.119
NVIDIA driver version 496.49
GPU RTX 3080
Docker: did you use Docker? If yes, specify docker image URL (e.g., nvcr.io/nvidia/pytorch:21.08-py3)

@nipponjo
Copy link

nipponjo commented Mar 8, 2022

@felkoh Have you checked the version of the default cl.exe? I had a similar-looking error because the cl.exe in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin was too old. The issue was solved when I replaced C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin with C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64 in PATH.

I use CUDA toolkit 11.6 and Visual Studio Community 2022.

@felkoh
Copy link

felkoh commented Mar 8, 2022

Hi @nipponjo thanks for the tip. I realised my problem was that I had both Visual Studio 2022 and 2019 installed, and even though I thought I had pointed pytorch to the 2019 version it must have been using the 2022 version by default. Uninstalling the 2022 version fixed all my issues.

@Inrixia
Copy link

Inrixia commented Mar 27, 2022

I'm having the same issue, no matter what version of build tools I use I get the same error

@Inrixia
Copy link

Inrixia commented Mar 27, 2022

Manually running "C:\Program Files (x86)\Microsoft Visual Studio\<VERSION>\Community\VC\Auxiliary\Build\vcvars64.bat" in my conda environment seems to have fixed this issue.

@lsh3163
Copy link

lsh3163 commented Mar 31, 2022

In Ubuntu, the gcc and g++ versions mattered. My gcc version was 11. Downgrading to 9 solved the problem.

Please check link : https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

@jannehellsten
Copy link
Contributor

jannehellsten commented Apr 11, 2022

I recently found that VS2019 community edition doesn't work with StyleGAN3 but VS2022 does. Alas, using VS2022 required some small changes. In case anyone above is struggling, this change might help:

69c7ef0

@neilthefrobot
Copy link

Hi @nipponjo thanks for the tip. I realised my problem was that I had both Visual Studio 2022 and 2019 installed, and even though I thought I had pointed pytorch to the 2019 version it must have been using the 2022 version by default. Uninstalling the 2022 version fixed all my issues.

After struggling for days this finally fixed my issue. Make sure you don't have path variables set for other versions of visual studio.

@JigliFischlord
Copy link

Hello, i've been trying to set up stylegan3 on my Windows machine but i am unable to get the program to run

(stylegan3) D:\stylegan3-main>python gen_images.py --outdir=out --trunc=1 --seeds=2 --network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl
Loading networks from "https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl"...
Generating image for seed 2 (0/1) ...
Setting up PyTorch plugin "bias_act_plugin"... Failed!
Traceback (most recent call last):
File "D:\stylegan3-main\gen_images.py", line 143, in
generate_images() # pylint: disable=no-value-for-parameter
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "D:\stylegan3-main\gen_images.py", line 135, in generate_images
img = G(z, label, truncation_psi=truncation_psi, noise_mode=noise_mode)
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "", line 503, in forward
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "", line 143, in forward
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "", line 92, in forward
File "D:\stylegan3-main\torch_utils\ops\bias_act.py", line 84, in bias_act
if impl == 'cuda' and x.device.type == 'cuda' and _init():
File "D:\stylegan3-main\torch_utils\ops\bias_act.py", line 41, in _init
_plugin = custom_ops.get_plugin(
File "D:\stylegan3-main\torch_utils\custom_ops.py", line 136, in get_plugin
torch.utils.cpp_extension.load(name=module_name, build_directory=cached_build_dir,
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1284, in load
return _jit_compile(
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1534, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
File "C:\Users\alexp\anaconda3\envs\stylegan3\lib\site-packages\torch\utils\cpp_extension.py", line 1936, in _import_module_from_library
module = importlib.util.module_from_spec(spec)
File "", line 565, in module_from_spec
File "", line 1173, in create_module
File "", line 228, in _call_with_frames_removed
ImportError: DLL load failed while importing bias_act_plugin: Das angegebene Modul wurde nicht gefunden.

(im sorry the language is german)

Ive tried the fixes that you mentioned the best i could but didnt get it to run
Anyone any ideas?

@brittneyjuliet
Copy link

hey everyone, i'm having similar issues as well. i made sure to install the vs c++ tools as well as run the vcvars batch file. i'm using an older version of torch to ensure compatibility with my installation of the cuda toolkit.

my setup:
windows 10
pytorch version 1.9.1+cu111
cuda toolkit version 11.2
nvidia driver version 516.94
vs2019 community edition
python 3.9.5

error:
(my_env395) C:\Users\britt\Downloads\stylegan3-fun-main>python gen_images.py --outdir=out --trunc=1 --seeds=0-4 --network=https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl
Loading networks from "https://api.ngc.nvidia.com/v2/models/nvidia/research/stylegan3/versions/1/files/stylegan3-r-afhqv2-512x512.pkl"...
Generating image for seed 0 (0/5) ...
Setting up PyTorch plugin "bias_act_plugin"... Failed!
Traceback (most recent call last):
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\utils\cpp_extension.py", line 1666, in _run_ninja_build
subprocess.run(
File "c:\Users\britt\pyver\py3.9.5\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\britt\Downloads\stylegan3-fun-main\gen_images.py", line 143, in
generate_images() # pylint: disable=no-value-for-parameter
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\Users\britt\Downloads\stylegan3-fun-main\gen_images.py", line 135, in generate_images
img = G(z, label, truncation_psi=truncation_psi, noise_mode=noise_mode)
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "", line 503, in forward
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "", line 143, in forward
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "", line 92, in forward
File "C:\Users\britt\Downloads\stylegan3-fun-main\torch_utils\ops\bias_act.py", line 84, in bias_act
if impl == 'cuda' and x.device.type == 'cuda' and _init():
File "C:\Users\britt\Downloads\stylegan3-fun-main\torch_utils\ops\bias_act.py", line 41, in _init
_plugin = custom_ops.get_plugin(
File "C:\Users\britt\Downloads\stylegan3-fun-main\torch_utils\custom_ops.py", line 136, in get_plugin
torch.utils.cpp_extension.load(name=module_name, build_directory=cached_build_dir,
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\utils\cpp_extension.py", line 1080, in load
return _jit_compile(
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\utils\cpp_extension.py", line 1293, in _jit_compile
_write_ninja_file_and_build_library(
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\utils\cpp_extension.py", line 1405, in _write_ninja_file_and_build_library
_run_ninja_build(
File "C:\Users\britt\pyproj\my_env395\lib\site-packages\torch\utils\cpp_extension.py", line 1682, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'bias_act_plugin': [1/3] cl /showIncludes -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\TH -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -Ic:\Users\britt\pyver\py3.9.5\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -c C:\Users\britt\AppData\Local\torch_extensions\torch_extensions\Cache\bias_act_plugin\3cb576a0039689487cfba59279dd6d46-nvidia-geforce-rtx-2070-super\bias_act.cpp /Fobias_act.o
FAILED: bias_act.o
cl /showIncludes -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\TH -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -Ic:\Users\britt\pyver\py3.9.5\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -c C:\Users\britt\AppData\Local\torch_extensions\torch_extensions\Cache\bias_act_plugin\3cb576a0039689487cfba59279dd6d46-nvidia-geforce-rtx-2070-super\bias_act.cpp /Fobias_act.o
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
[2/3] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc --generate-dependencies-with-compile --dependency-output bias_act.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\TH -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -Ic:\Users\britt\pyver\py3.9.5\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --use_fast_math --allow-unsupported-compiler -c C:\Users\britt\AppData\Local\torch_extensions\torch_extensions\Cache\bias_act_plugin\3cb576a0039689487cfba59279dd6d46-nvidia-geforce-rtx-2070-super\bias_act.cu -o bias_act.cuda.o
FAILED: bias_act.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc --generate-dependencies-with-compile --dependency-output bias_act.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\TH -IC:\Users\britt\pyproj\my_env395\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -Ic:\Users\britt\pyver\py3.9.5\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --use_fast_math --allow-unsupported-compiler -c C:\Users\britt\AppData\Local\torch_extensions\torch_extensions\Cache\bias_act_plugin\3cb576a0039689487cfba59279dd6d46-nvidia-geforce-rtx-2070-super\bias_act.cu -o bias_act.cuda.o
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
bias_act.cu
ninja: build stopped: subcommand failed.

any help will be greatly appreciated. thanks in advance :)

@tenghui98
Copy link

I solved this problem by using stylegan3 docker https://hub.docker.com/r/maximedurand/stylegan3

@kensuke-nakamura
Copy link

kensuke-nakamura commented Apr 24, 2023

I met a similar problem using Ubuntu 22 with Anaconda as

Setting up PyTorch plugin "bias_act_plugin"... Failed!
:
FAILED: bias_act.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=bias_act_plugin -...

In my case, removing the nvcc solved the problem: sudo apt remove nvidia-cuda-toolkit .

@kangjh0226
Copy link

kangjh0226 commented May 7, 2023

This problem makes me crazy a few days. Here share my experiment.

  1. Install the right GPU driver if you using NVIDIA gpu.
    https://www.nvidia.co.kr/Download/index.aspx?lang=kr
    U can find right driver on upper site.
    For me im using Titan V.

  2. Install the right CUDA.
    https://www.wikiwand.com/en/CUDA#/GPUs_supported
    From upper site you can find CUDA version supports your GPU.
    For me compute capability of Titan V is 7.0 so I can use CUDA version 9.0 ~ 12.0 (I guess so..)
    Then I choose CUDA 11.3. And get the cudnn.

  3. Install the right pytorch
    https://pytorch.org/get-started/previous-versions/
    From upper site you can find working pytorch version.
    Unfortunality not all CUDA has matched pytorch so hope you choose right CUDA on step 2.

4.(wasting my time most!) Install the right MSVC(aka Visual Studio)
https://quasar.ugent.be/files/doc/cuda-msvc-compatibility.html
U can find CUDA / Visual Studio compatibility here.
From my experiment VS 2022 does not work with CUDA 11.3 so if you use these version of CUDA please install VS2019.

  1. Add these things on system path.
    Path
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE
    LIB
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64
    C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x86
    C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86
    Include
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared

Hope these things could save your time. Good luck.

@laurajul
Copy link

In my case (win11) it helped to delete all the cache files here:
C:\Users*USER*\AppData\Local\torch_extensions\torch_extensions\Cache

there were a few folders called
📁py37_cu117
📁py39_cu116
...
I deleted all of them
That was the only thing that helped in my case.

@4DeepThought2
Copy link

Ive tried everything single thing in this thread and still get the same issue..

@johnny-t1000
Copy link

In my case, removing the nvcc solved the problem: sudo apt remove nvidia-cuda-toolkit .

this solve the issue for me

Setting up PyTorch plugin "bias_act_plugin"... Failed!

thanks ;)

@shartoo
Copy link

shartoo commented Jan 14, 2024

envirnomemnt

  • RTX 4070
  • windows 11
  • python: 3.10
  • cuda : 11.7
  • pytorch: 1.13.0
  • visual studio community: 2019

error message

Traceback (most recent call last):
  File "D:\soft\py310\lib\site-packages\torch\utils\cpp_extension.py", line 1900, in _run_ninja_build
    subprocess.run(
  File "D:\soft\py310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 

try to change command = ['ninja', '-v'] in cpp_extensions.py into command = ['ninja', '--version'] will get another message

   torch.utils.cpp_extension.load(name=module_name, build_directory=cached_build_dir,
  File "D:\soft\py310\lib\site-packages\torch\utils\cpp_extension.py", line 1284, in load
    return _jit_compile(
  File "D:\soft\py310\lib\site-packages\torch\utils\cpp_extension.py", line 1534, in _jit_compile
    return _import_module_from_library(name, build_directory, is_python_module)
  File "D:\soft\py310\lib\site-packages\torch\utils\cpp_extension.py", line 1936, in _import_module_from_library
    module = importlib.util.module_from_spec(spec)
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1176, in create_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_remove
ImportError: DLL load failed while importing bias_act_plugin: cannot find module

check the cache file path

image

manual execute the ninja build file with --verbose to show all detail parameters
image

manual execute the first compile step

nvcc --generate-dependencies-with-compile --dependency-output bias_act.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=bias_act_plugin -DTORCH_API_INCLUDE_EXTENSION_H -ID:\soft\py310\lib\site-packages\torch\include -ID:\soft\py310\lib\site-packages\torch\include\torch\csrc\api\include -ID:\soft\py310\lib\site-packages\torch\include\TH -ID:\soft\py310\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\include" -ID:\soft\py310\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use_fast_math -c C:\Users\Administrator\AppData\Local\torch_extensions\torch_extensions\Cache\py310_cu117\bias_act_plugin\3cb576a0039689487cfba59279dd6d46-nvidia-geforce-rtx-4070\bias_act.cu -o bias_act.cuda.o

image

you will find sth changed in the cache file path

image

a successful build file path should like

image

@shartoo
Copy link

shartoo commented Jan 15, 2024

Holy shit,the above error caused by my wrong version of visual studio community ,mine is 2017! After reinstall vs 2019 and do as following
image

run

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat

don't forget to reinstall the cuda & pytorch!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests