Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[ci skip] nd -> param
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmageddonKnight committed Sep 7, 2020
1 parent 441f3bd commit 2ec4357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/python/gpu/test_profiler_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ def test_gpu_memory_profiler_gluon():
# TODO: Remove this print statement later on.
for row in csv_reader:
print(",".join(list(row.values())))
for nd in model.collect_params().values():
expected_arg_name = "%s:in_arg:" % nd.var().attr('__profiler_scope__') + \
nd.name
expected_arg_size = str(4 * np.prod(nd.shape))
for param in model.collect_params().values():
expected_arg_name = "%sin_arg:" % param.var().attr('__profiler_scope__') + \
param.name
expected_arg_size = str(4 * np.prod(param.shape))
csv_file.seek(0)
entry_found = False
for row in csv_reader:
Expand Down

0 comments on commit 2ec4357

Please sign in to comment.