Skip to content

Commit 4670d37

Browse files
committed
Reorg benchmark.py import
1 parent 500c190 commit 4670d37

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

benchmark.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,23 @@
66
Hacked together by Ross Wightman (https://github.com/rwightman)
77
"""
88
import argparse
9-
import os
109
import csv
1110
import json
12-
import time
1311
import logging
14-
import torch
15-
import torch.nn as nn
16-
import torch.nn.parallel
12+
import time
1713
from collections import OrderedDict
1814
from contextlib import suppress
1915
from functools import partial
2016

17+
import torch
18+
import torch.nn as nn
19+
import torch.nn.parallel
20+
21+
from timm.data import resolve_data_config
2122
from timm.models import create_model, is_model, list_models
2223
from timm.optim import create_optimizer_v2
23-
from timm.data import resolve_data_config
2424
from timm.utils import setup_default_logging, set_jit_fuser
2525

26-
2726
has_apex = False
2827
try:
2928
from apex import amp

0 commit comments

Comments
 (0)