mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Re-enable dynamic shapes test in dynamo benchmark (#99816)
Set `torch._dynamo.config.assume_static_by_default = False` for dynamic shapes flag enabled Fixes #99815 Pull Request resolved: https://github.com/pytorch/pytorch/pull/99816 Approved by: https://github.com/jgong5, https://github.com/ezyang
This commit is contained in:
parent
d881b2978c
commit
e9e5ffe83e
1 changed files with 2 additions and 0 deletions
|
|
@ -2053,6 +2053,8 @@ def run(runner, args, original_dir=None):
|
|||
torch._dynamo.config.assume_static_by_default = True
|
||||
if args.dynamic_shapes:
|
||||
torch._dynamo.config.dynamic_shapes = True
|
||||
if not args.dynamic_batch_only:
|
||||
torch._dynamo.config.assume_static_by_default = False
|
||||
if args.specialize_int:
|
||||
torch._dynamo.config.specialize_int = True
|
||||
if args.ci:
|
||||
|
|
|
|||
Loading…
Reference in a new issue