Skip to content

Instantly share code, notes, and snippets.

Leyuan Wang Laurawly

Block or report user

Report or block Laurawly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4cfe15314b6380e4d7876afc00860b6c
Traceback (most recent call last):
File "demo.py", line 19, in <module>
classifier = gcv.model_zoo.get_model('resnet50_v1d', pretrained=True, ctx=ctx)
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/gluoncv-0.5.0-py3.6.egg/gluoncv/model_zoo/model_zoo.py", line 241, in get_model
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/gluoncv-0.5.0-py3.6.egg/gluoncv/model_zoo/resnetv1b.py", line 629, in resnet50_v1d
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/block.py", line 402, in load_parameters
params[name]._load_init(loaded[name], ctx)
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/parameter.py", line 271, in _load_init
self._init_impl(data, ctx)
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/parameter.py", line 311, in _init_impl
View gist:776483e7bd61bb4b9ca05f6d8c1c766e
// attr [get_valid_counts_phase_one.v0] storage_scope = "global"
allocate get_valid_counts_phase_one.v0[int32 * 15360]
// attr [get_valid_counts_phase_one.v1] storage_scope = "global"
allocate get_valid_counts_phase_one.v1[int32 * 15360]
// attr [get_valid_counts_phase_two.v1] storage_scope = "global"
allocate get_valid_counts_phase_two.v1[int32 * 496]
// attr [get_valid_counts_phase_two.v0] storage_scope = "global"
allocate get_valid_counts_phase_two.v0[int32 * 15360]
// attr [get_valid_counts_phase_three] storage_scope = "global"
allocate get_valid_counts_phase_three[int32 * 496]
View gist:2bd2521fc3060df1cf14f461413ae55f
Traceback (most recent call last):
File "topi/tests/python/test_topi_vision.py", line 437, in <module>
test_get_valid_counts()
File "topi/tests/python/test_topi_vision.py", line 84, in test_get_valid_counts
verify_get_valid_counts((1, 15360, 5), 0)
File "topi/tests/python/test_topi_vision.py", line 74, in verify_get_valid_counts
check_device(device)
File "topi/tests/python/test_topi_vision.py", line 70, in check_device
tvm.testing.assert_allclose(tvm_out1.asnumpy(), np_out1, rtol=1e-3)
File "/home/ubuntu/workplace/tvm/python/tvm/_ffi/ndarray.py", line 283, in asnumpy
View test_sort.py
def test_sort():
dshape = (1, 500)
data = tvm.placeholder(dshape, name="data")
np_data = np.random.rand(dshape[0], dshape[1]).astype(data.dtype)
print(np_data)
np_result = np.argsort(-np_data)
def check_device(device):
ctx = tvm.context(device, 0)
if not ctx.exist:
print("Skip because %s is not enabled" % device)
You can’t perform that action at this time.