Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: not enough values to unpack (expected 4, got 0) #1

Open
da30tech opened this issue Aug 22, 2018 · 0 comments
Open

ValueError: not enough values to unpack (expected 4, got 0) #1

da30tech opened this issue Aug 22, 2018 · 0 comments

Comments

@da30tech
Copy link

はじめまして
ディープラーニングを実務で活用することを考えるとエッジでモデルを使うことが重要と感じ、スマホで動かす事にトライしております
数少ないネット上の情報ですので、非常に参考にさせて頂いております

質問です
環境構築後、run_pc.pyを実行するすると以下のエラーが出てしまいました
原因で気付くことがございましたら教えて頂けると助かります

〜〜〜〜〜〜
$ python run_pc.py
/anaconda3/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
WARNING:root:Attribute momentum is disabled in nnvm.sym.batch_norm
Traceback (most recent call last):
File "run_pc.py", line 46, in
graph, lib, params = nnvm.compiler.build(sym, target, {input_name: data_shape}, params=params)
File "/anaconda3/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/compiler/build_module.py", line 272, in build
graph = optimize(graph, shape, dtype, layout)
File "/anaconda3/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/compiler/build_module.py", line 169, in optimize
graph = graph.apply(["InferShape", "InferType", "AlterOpLayout"])
File "/anaconda3/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/graph.py", line 234, in apply
check_call(_LIB.NNGraphApplyPasses(self.handle, npass, cpass, ctypes.byref(ghandle)))
File "/anaconda3/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/_base.py", line 75, in check_call
raise NNVMError(py_str(_LIB.NNGetLastError()))
nnvm._base.NNVMError: TVMCall CFunc Error:
Traceback (most recent call last):
File "tvm/_ffi/_cython/./function.pxi", line 38, in tvm._ffi._cy3.core.tvm_callback
File "/anaconda3/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/top/nn.py", line 125, in alter_conv2d_layout
return topi.nn.conv2d_alter_layout(attrs, inputs, tinfos)
File "", line 2, in conv2d_alter_layout
File "/anaconda3/lib/python3.6/site-packages/tvm-0.2.0-py3.6-macosx-10.7-x86_64.egg/tvm/target.py", line 345, in dispatch_func
return dispatch_dict[k](*args, **kwargs)
File "/anaconda3/lib/python3.6/site-packages/topi-0.2.0-py3.6.egg/topi/x86/conv2d.py", line 141, in _alter_conv2d_layout
wkl = _get_workload(data, kernel, stride, padding, data.dtype)
File "/anaconda3/lib/python3.6/site-packages/topi-0.2.0-py3.6.egg/topi/nn/conv2d.py", line 134, in _get_workload
_, CI, IH, IW = [x.value for x in data.shape]
ValueError: not enough values to unpack (expected 4, got 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant