Skip to content

Conversation

@bertmaher
Copy link
Contributor

Summary: that's it

Test Plan: docs only

Differential Revision: D22818705

…ytorch#41906)

Summary:
Pull Request resolved: pytorch#41906

Fixes pytorch#41770

Test Plan:
Example:
```
import torch
def bar():
    def test(a):
        return a
    x = torch.ones(10,10, device='cpu')
    print(torch.jit.trace(test, (x)).graph)
bar()
```

Bash:
```
for i in 0 1 2 3; do
  PYTORCH_JIT_TYPE_VERBOSITY=$i python test.py
done
```

Output:
```
graph(%0):
  return (%0)

graph(%0 : Float(10, 10)):
  return (%0)

graph(%0 : Float(10:10, 10:1)):
  return (%0)

graph(%0 : Float(10:10, 10:1, requires_grad=0, device=cpu)):
  return (%0)
```

Imported from OSS

Differential Revision: D22687966

fbshipit-source-id: 2bbba363909e82d727b0efc5428c8f1a324c8418
Summary: that's it

Test Plan: docs only

Differential Revision: D22818705

fbshipit-source-id: 44a6f2038014c33aec02d08a3ddea91cae82ad73
@bertmaher bertmaher requested a review from apaszke as a code owner July 29, 2020 18:03
@facebook-github-bot facebook-github-bot added oncall: jit Add this issue/PR to JIT oncall triage queue fb-exported labels Jul 29, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D22818705

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a4dbc64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fb-exported Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants