-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KJT dynamo path for conditions (#1846)
Summary: Pull Request resolved: #1846 The change is no-change for eager path. **Dynamo path** Dynamo tracing can not pass through various conditions => making dynamo path without those conditions. We skip asserts for dynamo and variable batch check if it can go through "equal batches" logic => for Dynamo fallback on Variable Batch path. **Comments about torch scripting** `guard_size_oblivious()`, `_check_is_size()` is not torch scriptable atm, we have to guard it in `is not torch.jit.is_scripting` `torch.jit._unwrap_optional(recat)` is used to hint torch script that recat is not None at the places where we use it. `torch.jit.annotate()` hints to TorchScript about the returned type of `tensor.tolist()` Reviewed By: ezyang Differential Revision: D55695198 fbshipit-source-id: a98ee025cf4dfe40e18ea28a589c5ed3f2b9ed03
- Loading branch information
1 parent
a649b4e
commit 254cb1e
Showing
1 changed file
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters