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

[jit] Loading JIT'd BatchNorm1d in C++ doesn't work #17327

Closed
suo opened this issue Feb 21, 2019 · 2 comments
Closed

[jit] Loading JIT'd BatchNorm1d in C++ doesn't work #17327

suo opened this issue Feb 21, 2019 · 2 comments
Assignees
Labels
needs reproduction Someone else needs to try reproducing the issue given the instructions. No action needed from user oncall: jit Add this issue/PR to JIT oncall triage queue

Comments

@suo
Copy link
Member

suo commented Feb 21, 2019

Error msg:

terminate called after throwing an instance of 'torch::jit::script::ErrorReport'
  what():
Return value was annotated as having type Tuple[] but is actually of type Optional[Tuple[]]:
op_version_set = 0
def _check_input_dim(self,
    input: Tensor) -> Tuple[]:
  _0 = torch.ne(torch.dim(input), 2)
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...  <--- HERE
  if _0:
    _1 = torch.ne(torch.dim(input), 3)
  else:
    _1 = _0
  if _1:
    ops.prim.RaiseException("Exception")
  else:
    pass
def forward(self,
Aborted (core dumped)

Full context on the forums

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Feb 21, 2019
@wanchaol
Copy link
Contributor

wanchaol commented Feb 21, 2019

I tried to reproduce this, but it works all fine on my side, i will comment on the original post

@suo suo added jit-triaged needs reproduction Someone else needs to try reproducing the issue given the instructions. No action needed from user labels Feb 25, 2019
@wanchaol
Copy link
Contributor

closing this as it get resolved in the original post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Someone else needs to try reproducing the issue given the instructions. No action needed from user oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

No branches or pull requests

3 participants