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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

export BUILD_CAFFE2_OPS=0 breaks jit tests #18142

Closed
zdevito opened this issue Mar 18, 2019 · 1 comment
Closed

export BUILD_CAFFE2_OPS=0 breaks jit tests #18142

zdevito opened this issue Mar 18, 2019 · 1 comment
Assignees
Labels
caffe2 oncall: jit Add this issue/PR to JIT oncall triage queue

Comments

@zdevito
Copy link
Contributor

zdevito commented Mar 18, 2019

馃悰 Bug

ERROR: test_trace_c10_ops (__main__.TestJit)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_jit.py", line 1431, in test_trace_c10_ops
    traced_model = torch.jit.trace(model, inputs)
  File "/data/users/zdevito/pytorch/torch/jit/__init__.py", line 668, in trace
    var_lookup_fn, _force_outplace)
  File "/data/users/zdevito/pytorch/torch/nn/modules/module.py", line 489, in __call__
    result = self._slow_forward(*input, **kwargs)
  File "/data/users/zdevito/pytorch/torch/nn/modules/module.py", line 479, in _slow_forward
    result = self.forward(*input, **kwargs)
  File "test/test_jit.py", line 1414, in forward
    a, b = torch.ops._caffe2.GenerateProposals(
  File "/data/users/zdevito/pytorch/torch/_ops.py", line 60, in __getattr__
    op = torch._C._jit_get_operation(qualified_op_name)
RuntimeError: No such operator _caffe2::GenerateProposals

To Reproduce

Steps to reproduce the behavior:

Built with

export BUILD_CAFFE2_OPS=0

Expected behavior

Test is disabled or arranged not to fail if CAFFE2_OPS were not built.

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Mar 18, 2019
@zdevito
Copy link
Contributor Author

zdevito commented Apr 2, 2019

@smessmer Any progress on this? It was reported two weeks ago and still appears broken on master.

@houseroad houseroad self-assigned this Apr 8, 2019
zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this issue May 6, 2019
Summary:
fix pytorch#18142
Pull Request resolved: pytorch#19099

Differential Revision: D15010452

Pulled By: houseroad

fbshipit-source-id: 5bf158d7fce7bfde109d364a3a9c85b83761fffb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caffe2 oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants