Skip to content

Conversation

driazati
Copy link
Contributor

@driazati driazati commented Jun 30, 2021

Stack from ghstack:

Instead of being 'patch' this should be the import-able name of the module (it's defined as _fx on the torch._C module, so the full name should be torch._C._fx). This now works correctly:

>>> import torch._C._fx
>>> dir(torch._C._fx)
['__doc__', '__loader__', '__name__', '__package__', '__spec__', 'patch_function']

Differential Revision: D29497018

Instead of being 'patch' this should be the import-able name of the module (it's defined as `_fx` on the `torch._C` module, so the full name should be `torch._C._fx`). This now works correctly:

```python
>>> import torch._C._fx
>>> dir(torch._C._fx)
['__doc__', '__loader__', '__name__', '__package__', '__spec__', 'patch_function']
```

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jun 30, 2021

💊 CI failures summary and remediations

As of commit f9cb8aa (more details on the Dr. CI page and at hud.pytorch.org/pr/61062):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-scanned failure(s)

Preview docs built from this PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@driazati driazati requested a review from Chillee June 30, 2021 19:15
@driazati
Copy link
Contributor Author

@driazati has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Collaborator

@Chillee Chillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see - thanks for fixing it!

@facebook-github-bot
Copy link
Contributor

@driazati merged this pull request in aa728dc.

@facebook-github-bot facebook-github-bot deleted the gh/driazati/59/head branch July 4, 2021 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants