Skip to content

Conversation

@SplitInfinity
Copy link

@SplitInfinity SplitInfinity commented Aug 26, 2020

Stack from ghstack:

Summary
This commit modifies the torch._C._jit_to_backend function so that it
accepts ScriptModules as inputs. It already returns ScriptModules
(as opposed to C++ modules), so this makes sense and makes the API more
intuitive.

Test Plan
Continuous integration, which includes unit tests and out-of-tree tests
for custom backends.

Fixes
This commit fixes #41432.

Differential Revision: D23339854

**Summary**
This commit modifies the `torch._C._jit_to_backend` function so that it
accepts `ScriptModules` as inputs. It already returns `ScriptModules`
(as opposed to C++ modules), so this makes sense and makes the API more
intuitive.

**Test Plan**
Continuous integration, which includes unit tests and out-of-tree tests
for custom backends.

**Fixes**
This commit fixes #41432.

[ghstack-poisoned]
@SplitInfinity SplitInfinity requested a review from apaszke as a code owner August 26, 2020 06:41
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 26, 2020
@dr-ci
Copy link

dr-ci bot commented Aug 26, 2020

💊 CI failures summary and remediations

As of commit 7b08693 (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_macos_10_13_py3_test (1/1)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

Aug 26 01:10:45 [E request_callback_no_python.cpp:618] Received error while processing request type 2: RuntimeError: Can not pickle torch.futures.Future
Aug 26 01:10:45 At: 
Aug 26 01:10:45   /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py(93): serialize 
Aug 26 01:10:45   /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py(145): serialize 
Aug 26 01:10:45  
Aug 26 01:10:45 [E request_callback_no_python.cpp:618] Received error while processing request type 2: RuntimeError: Can not pickle torch.futures.Future 
Aug 26 01:10:45  
Aug 26 01:10:45 At: 
Aug 26 01:10:45   /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py(93): serialize 
Aug 26 01:10:45   /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py(145): serialize 
Aug 26 01:10:45  
Aug 26 01:10:45 [E request_callback_no_python.cpp:618] Received error while processing request type 2: RuntimeError: Can not pickle torch.futures.Future 
Aug 26 01:10:45  
Aug 26 01:10:45 At: 
Aug 26 01:10:45   /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py(93): serialize 
Aug 26 01:10:45   /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/distributed/rpc/internal.py(145): serialize 
Aug 26 01:10:45  
Aug 26 01:10:46 ok (1.568s) 
Aug 26 01:10:47   test_return_future_remote (__main__.ProcessGroupRpcTestWithSpawn) ... ok (1.618s) 
Aug 26 01:10:49   test_return_local_rrefs (__main__.ProcessGroupRpcTestWithSpawn) ... ok (1.556s) 
Aug 26 01:10:51   test_rpc_return_rref (__main__.ProcessGroupRpcTestWithSpawn) ... ok (1.580s) 
Aug 26 01:10:58   test_rpc_timeouts (__main__.ProcessGroupRpcTestWithSpawn) ... ok (7.909s) 

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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 1 time.

@SplitInfinity SplitInfinity requested review from jamesr66a and suo August 26, 2020 16:44
facebook-github-bot pushed a commit that referenced this pull request Sep 29, 2020
Summary:
Pull Request resolved: #43612

**Summary**
This commit modifies the `torch._C._jit_to_backend` function so that it
accepts `ScriptModules` as inputs. It already returns `ScriptModules`
(as opposed to C++ modules), so this makes sense and makes the API more
intuitive.

**Test Plan**
Continuous integration, which includes unit tests and out-of-tree tests
for custom backends.

**Fixes**
This commit fixes #41432.

Test Plan: Imported from OSS

Reviewed By: suo, jamesr66a

Differential Revision: D23339854

Pulled By: SplitInfinity

fbshipit-source-id: 08ecef729c4e1e6bddf3f483276947fc3559ea88
@facebook-github-bot facebook-github-bot deleted the gh/splitinfinity/34/head branch October 2, 2020 14:17
geoffberry pushed a commit to geoffberry/glow that referenced this pull request Nov 8, 2020
Summary:
Pull Request resolved: pytorch/pytorch#43612

**Summary**
This commit modifies the `torch._C._jit_to_backend` function so that it
accepts `ScriptModules` as inputs. It already returns `ScriptModules`
(as opposed to C++ modules), so this makes sense and makes the API more
intuitive.

**Test Plan**
Continuous integration, which includes unit tests and out-of-tree tests
for custom backends.

**Fixes**
This commit fixes #41432.

Test Plan: Imported from OSS

Reviewed By: suo, jamesr66a

Differential Revision: D23339854

Pulled By: SplitInfinity

fbshipit-source-id: 08ecef729c4e1e6bddf3f483276947fc3559ea88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants