Skip to content

Commit faad264

Browse files
stas00holly1238
andauthored
remove python2 notes (#1279)
If I'm not mistaken python2 is no longer supported by pytorch - so removing python2-specific notes Co-authored-by: holly1238 <77758406+holly1238@users.noreply.github.com>
1 parent a3f4644 commit faad264

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

intermediate_source/model_parallel_tutorial.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ def train(model):
192192
stmt = "train(model)"
193193

194194
setup = "model = ModelParallelResNet50()"
195-
# globals arg is only available in Python 3. In Python 2, use the following
196-
# import __builtin__
197-
# __builtin__.__dict__.update(locals())
198195
mp_run_times = timeit.repeat(
199196
stmt, setup, number=1, repeat=num_repeat, globals=globals())
200197
mp_mean, mp_std = np.mean(mp_run_times), np.std(mp_run_times)

0 commit comments

Comments
 (0)