
Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/private/var/folders/nj/nphdkhyj6s1dttb0pd9zb2wc0000gn/T/pip-build-dzkUib/cupy/setup.py", line 102, in <module>

'sdist': sdist},


 "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup

return distutils.core.setup(**attrs)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/core.py", line 151, in setup

dist.run_commands()


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands

self.run_command(cmd)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command

cmd_obj.run()


 "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run

return orig.install.run(self)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/command/install.py", line 563, in run

self.run_command('build')


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/cmd.py", line 326, in run_command

self.distribution.run_command(command)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command

cmd_obj.run()


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/command/build.py", line 127, in run

self.run_command(cmd_name)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/cmd.py", line 326, in run_command

self.distribution.run_command(command)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command

cmd_obj.run()


 "cupy_setup_build.py", line 554, in run

build_ext.build_ext.run(self)


 "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 75, in run

_build_ext.run(self)


 "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 185, in run

_build_ext.build_ext.run(self)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/command/build_ext.py", line 340, in run

self.build_extensions()


 "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions

self.build_extension(ext)


 "/Users/davidlaxer/anaconda/lib/python2.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension

_build_ext.build_extension(self, ext)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/command/build_ext.py", line 499, in build_extension

depends=ext.depends)


 "/Users/davidlaxer/anaconda/lib/python2.7/distutils/ccompiler.py", line 574, in compile

self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)


 "cupy_setup_build.py", line 447, in _compile

base_opts = build.get_compiler_base_options()


 "install/build.py", line 153, in get_compiler_base_options

_compiler_base_options = _get_compiler_base_options()


 "install/build.py", line 191, in _get_compiler_base_options

stderrdata.decode('utf8'))

RuntimeError: Encountered unknown error while testing nvcc:

Traceback (most recent call last):


 "tools/deploy/caffe2_converter.py", line 52, in <module>

caffe2_model = export_caffe2_model(cfg, torch_model, first_batch)


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/export/api.py", line 57, in export_caffe2_model

predict_net, init_net = export_caffe2_detection_model(c2_compatible_model, c2_format_input)


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/export/caffe2_export.py", line 143, in export_caffe2_detection_model

onnx_model = export_onnx_model(model, (tensor_inputs,))


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/export/caffe2_export.py", line 60, in export_onnx_model

operator_export_type=OperatorExportTypes.ONNX_ATEN_FALLBACK,


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/onnx/__init__.py", line 172, in export

custom_opsets, enable_onnx_checker, use_external_data_format)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/onnx/utils.py", line 92, in export

use_external_data_format=use_external_data_format)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/onnx/utils.py", line 510, in _export

fixed_batch_size=fixed_batch_size)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/onnx/utils.py", line 350, in _model_to_graph

graph, torch_out = _trace_and_get_graph_from_model(model, args)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/onnx/utils.py", line 307, in _trace_and_get_graph_from_model

torch.jit._get_trace_graph(model, args, _force_outplace=False, _return_inputs_states=True)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/jit/__init__.py", line 277, in _get_trace_graph

outs = ONNXTracedModule(f, _force_outplace, return_inputs, _return_inputs_states)(*args, **kwargs)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 558, in __call__

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


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/jit/__init__.py", line 360, in forward

self._force_outplace,


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/jit/__init__.py", line 347, in wrapper

outs.append(self.inner(*trace_inputs))


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 556, in __call__

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


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 542, in _slow_forward

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


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/contextlib.py", line 74, in inner

return func(*args, **kwds)


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/export/caffe2_modeling.py", line 268, in forward

proposals, _ = self._wrapped_model.proposal_generator(images, features)


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 556, in __call__

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


 "/home/ashwin/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 542, in _slow_forward

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


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/export/c10.py", line 205, in forward

legacy_plus_one=False,
RuntimeError: Could not run '_caffe2::GenerateProposals' with arguments from the 'CUDATensorId' backend. '_caffe2::GenerateProposals' is only available for these backends: [CPUTensorId].
