Traceback (most recent call last):


 "pytorch_translate/onnx_component_export.py", line 124, in <module>

main()


 "pytorch_translate/onnx_component_export.py", line 89, in main

encoder_ensemble.save_to_db(args.encoder_output_file)


 "/home/translate/pytorch_translate/ensemble_export.py", line 213, in save_to_db

self.onnx_export(tmp_file)


 "/home/translate/pytorch_translate/ensemble_export.py", line 204, in onnx_export

output_names=self.output_names,


 "/home/translate/pytorch_translate/ensemble_export.py", line 44, in onnx_export_ensemble

output_names=output_names,


 "/home/miniconda/lib/python3.6/site-packages/torch/onnx/__init__.py", line 20, in _export

return utils._export(*args, **kwargs)


 "/home/miniconda/lib/python3.6/site-packages/torch/onnx/utils.py", line 207, in _export

proto, export_map = graph.export(params, _onnx_opset_version, defer_weight_export, export_raw_ir)
RuntimeError: ONNX export failed: Cannot export individual pack_padded_sequence or pad_packed_sequence; these operations must occur in pairs.

Traceback (most recent call last):


 "train.py", line 538, in <module>

main() # pylint: disable=no-value-for-parameter


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\click\core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\click\core.py", line 782, in main

rv = self.invoke(ctx)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\click\core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\click\core.py", line 610, in invoke

return callback(*args, **kwargs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\click\decorators.py", line 21, in new_func

return f(get_current_context(), *args, **kwargs)


 "train.py", line 531, in main

subprocess_fn(rank=0, args=args, temp_dir=temp_dir)


 "train.py", line 383, in subprocess_fn

training_loop.training_loop(rank=rank, **args)


 "Y:\projects\stylegan2ada\training\training_loop.py", line 166, in training_loop

img = misc.print_module_summary(G, [z, c])


 "Y:\projects\stylegan2ada\torch_utils\misc.py", line 212, in print_module_summary

outputs = module(*inputs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl

result = self.forward(*input, **kwargs)


 "Y:\projects\stylegan2ada\training\networks.py", line 499, in forward

img = self.synthesis(ws, **synthesis_kwargs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl

result = self.forward(*input, **kwargs)


 "Y:\projects\stylegan2ada\training\networks.py", line 471, in forward

x, img = block(x, img, cur_ws, **block_kwargs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl

result = self.forward(*input, **kwargs)


 "Y:\projects\stylegan2ada\training\networks.py", line 405, in forward

x = self.conv0(x, next(w_iter), fused_modconv=fused_modconv, **layer_kwargs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl

result = self.forward(*input, **kwargs)


 "Y:\projects\stylegan2ada\training\networks.py", line 300, in forward

padding=self.padding, resample_filter=self.resample_filter, flip_weight=flip_weight, fused_modconv=fused_modconv)


 "Y:\projects\stylegan2ada\torch_utils\misc.py", line 101, in decorator

return fn(*args, **kwargs)


 "Y:\projects\stylegan2ada\training\networks.py", line 65, in modulated_conv2d

x = conv2d_resample.conv2d_resample(x=x, w=weight.to(x.dtype), f=resample_filter, up=up, down=down, padding=padding, flip_weight=flip_weight)


 "Y:\projects\stylegan2ada\torch_utils\misc.py", line 101, in decorator

return fn(*args, **kwargs)


 "Y:\projects\stylegan2ada\torch_utils\ops\conv2d_resample.py", line 139, in conv2d_resample

x = upfirdn2d.upfirdn2d(x=x, f=f, padding=[px0+pxt,px1+pxt,py0+pyt,py1+pyt], gain=up**2, flip_filter=flip_filter)


 "Y:\projects\stylegan2ada\torch_utils\ops\upfirdn2d.py", line 160, in upfirdn2d

if impl == 'cuda' and x.device.type == 'cuda' and _init():


 "Y:\projects\stylegan2ada\torch_utils\ops\upfirdn2d.py", line 31, in _init

_plugin = custom_ops.get_plugin('upfirdn2d_plugin', sources=sources, extra_cuda_cflags=['--use_fast_math'])


 "Y:\projects\stylegan2ada\torch_utils\custom_ops.py", line 110, in get_plugin

torch.utils.cpp_extension.load(name=module_name, verbose=verbose_build, sources=sources, **build_kwargs)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\utils\cpp_extension.py", line 1091, in load

keep_intermediates=keep_intermediates)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\utils\cpp_extension.py", line 1302, in _jit_compile

is_standalone=is_standalone)


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\utils\cpp_extension.py", line 1407, in _write_ninja_file_and_build_library

error_prefix=f"Error building extension '{name}'")


 "C:\Users\vokho\anaconda3\envs\stylegan\lib\site-packages\torch\utils\cpp_extension.py", line 1683, in _run_ninja_build

raise RuntimeError(message) from e
RuntimeError: Error building extension 'upfirdn2d_plugin': ninja: error: build.ninja:3: lexing error
