summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Suo <suo@fb.com>2019-04-03 22:18:09 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-04-03 22:24:01 -0700
commit72913a55a8d913b2d1330a8c58159257542f7628 (patch)
tree39322c197f3608da66d389374b01604c327a84fd
parent0a4117a36e4f6f6fa5928094000a868dc3784e77 (diff)
downloadpytorch-72913a55a8d913b2d1330a8c58159257542f7628.tar.gz
pytorch-72913a55a8d913b2d1330a8c58159257542f7628.tar.bz2
pytorch-72913a55a8d913b2d1330a8c58159257542f7628.zip
fix flake8 lint (#18835)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18835 ghimport-source-id: 7b1f433ae51232822704d62699233688072cbc23 Stack from [ghstack](https://github.com/ezyang/ghstack): * **#18835 fix flake8 lint** * #18826 [jit] run cpp tests for non-cuda builds in test_jit.py ...again Reviewed By: ZolotukhinM Differential Revision: D14766790 fbshipit-source-id: 29361a407589092831dfbc3c5d63d2834934cd02
-rw-r--r--aten/src/ATen/native_parse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/aten/src/ATen/native_parse.py b/aten/src/ATen/native_parse.py
index fa946b7611..6217769af7 100644
--- a/aten/src/ATen/native_parse.py
+++ b/aten/src/ATen/native_parse.py
@@ -343,6 +343,7 @@ def has_sparse_dispatches(dispatches):
return True
return False
+
def parse_native_yaml(path):
with open(path, 'r') as f:
return yaml.load(f, Loader=Loader)