mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
[2/N][Easy] fix typo for usort config in pyproject.toml (kown -> known): sort caffe2 (#127123)
The `usort` config in `pyproject.toml` has no effect due to a typo. Fixing the typo make `usort` do more and generate the changes in the PR. Except `pyproject.toml`, all changes are generated by `lintrunner -a --take UFMT --all-files`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/127123 Approved by: https://github.com/Skylion007 ghstack dependencies: #127122
This commit is contained in:
committed by
PyTorch MergeBot
parent
da141b096b
commit
0dae2ba5bd
@@ -11,12 +11,14 @@ import tempfile
|
||||
from urllib.request import urlretrieve
|
||||
|
||||
import boto3
|
||||
import caffe2.python.onnx.backend
|
||||
import caffe2.python.onnx.frontend
|
||||
import caffe2.python.workspace as c2_workspace
|
||||
import numpy as np
|
||||
import onnx
|
||||
import onnx.backend
|
||||
from onnx import numpy_helper
|
||||
|
||||
import caffe2.python.onnx.backend
|
||||
import caffe2.python.onnx.frontend
|
||||
import caffe2.python.workspace as c2_workspace
|
||||
from caffe2.proto import caffe2_pb2
|
||||
|
||||
from caffe2.python.models.download import (
|
||||
@@ -24,7 +26,6 @@ from caffe2.python.models.download import (
|
||||
downloadFromURLToFile,
|
||||
getURLFromName,
|
||||
)
|
||||
from onnx import numpy_helper
|
||||
|
||||
|
||||
"""A script converting Caffe2 models to ONNX, and updating ONNX model zoos.
|
||||
|
||||
Reference in New Issue
Block a user