Skip to content

Commit

Permalink
Drop unused imports from scripts (pytorch#49956)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#49956

From
```
./python/libcst/libcst codemod remove_unused_imports.RemoveUnusedImportsWithGlean --no-format caffe2/
```

Test Plan: Standard sandcastle tests

Reviewed By: xush6528

Differential Revision: D25727347

fbshipit-source-id: 74d0a08aa0cfd0f492688a2b8278a0c65fd1deba
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jan 5, 2021
1 parent efe1fc2 commit 5acb1cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions scripts/model_zoo/update-models-from-caffe2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
import caffe2.python.workspace as c2_workspace
import glob
import json
import math
import numpy as np
import onnx
import caffe2.python.onnx.frontend
import caffe2.python.onnx.backend
import os
import shutil
import subprocess
import sys
import tarfile
import tempfile

Expand All @@ -25,7 +22,6 @@
from caffe2.python.models.download import downloadFromURLToFile, getURLFromName, deleteDirectory
from caffe2.proto import caffe2_pb2
from onnx import numpy_helper
from filechunkio import FileChunkIO


"""A script converting Caffe2 models to ONNX, and updating ONNX model zoos.
Expand Down
3 changes: 1 addition & 2 deletions scripts/release_notes/categorize.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import json
import argparse
import os
import textwrap
from common import dict_to_features, categories, topics, get_features, CommitDataCache
from common import categories, topics, CommitDataCache
from commitlist import CommitList

class Categorizer:
Expand Down
2 changes: 1 addition & 1 deletion scripts/release_notes/commitlist.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse
from common import run, topics
from collections import namedtuple, defaultdict
from collections import defaultdict
import os
import csv
import pprint
Expand Down

0 comments on commit 5acb1cc

Please sign in to comment.