# Naming convention for start\_name and stop\_name

**URL:** <https://discuss.tvm.apache.org/t/naming-convention-for-start-name-and-stop-name/5304>\
**Category:** Application\
**Created:** [January 6, 2020, 6:53pm UTC](https://discuss.tvm.apache.org/t/naming-convention-for-start-name-and-stop-name/5304 "2020-01-06T18:53:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wltz](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/w/5f9b8f/32.png) [@wltz](https://discuss.tvm.apache.org/u/wltz)\
**Post date:** [January 6, 2020, 6:53pm UTC](https://discuss.tvm.apache.org/t/naming-convention-for-start-name-and-stop-name/5304/1 "2020-01-06T18:53:47Z")

</div>

Hi All,

I am following the tutorial instruction “[Deploy Pretrained Vision Model from MxNet on VTA](https://docs.tvm.ai/vta/tutorials/frontend/deploy_vision_on_vta.html#sphx-glr-vta-tutorials-frontend-deploy-vision-on-vta-py)”. The sample program runs perfectly. Then I am trying to use other model( mobileNet1.0) from MxNet. I’ve modified the code, by changing the pack\_dict to

```
pack_dict = {"mobilenet1.0": ["nn.conv2d", "nn.dense"]}

```

also changed the model to

```
model = "mobilenet1.0"

```

But, I am getting an “AssertionError”. I am not sure that my naming convention is correct. Where do I find the naming convention for the start\_name and stop\_name if I want to use other models from MxNet, or even if I build my own model using API from MxNet. Is there any documentation that I can follow? Thanks !

Following is the error message:

```
File "deploy_vision_on_vta.py", line 191, in <module>
stop_name=pack_dict[model][1])

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 328, in graph_pack
expr = packer.visit(expr)

File "/harddisk1/xxxx/.local/lib/python3.6/site-packages/tvm-0.6.0-py3.6-linux-x86_64.egg/tvm/relay/expr_functor.py", line 43, in visit
res = self.visit_function(expr)

File "/harddisk1/xxxx/.local/lib/python3.6/site-packages/tvm-0.6.0-py3.6-linux-x86_64.egg/tvm/relay/expr_functor.py", line 199, in visit_function
new_body = self.visit(fn.body)

File "/harddisk1/xxx/.local/lib/python3.6/site-packages/tvm-0.6.0-py3.6-linux-x86_64.egg/tvm/relay/expr_functor.py", line 45, in visit
res = self.visit_call(expr)

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in visit_call
args = [self.visit(arg) for arg in call.args]

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in <listcomp>
args = [self.visit(arg) for arg in call.args]

File "/harddisk1/xxxx/.local/lib/python3.6/site-packages/tvm-0.6.0-py3.6-linux-x86_64.egg/tvm/relay/expr_functor.py", line 45, in visit
res = self.visit_call(expr)

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in visit_call
args = [self.visit(arg) for arg in call.args]

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in <listcomp>
args = [self.visit(arg) for arg in call.args]

File "/harddisk1/xxxx/.local/lib/python3.6/site-packages/tvm-0.6.0-py3.6-linux-x86_64.egg/tvm/relay/expr_functor.py", line 45, in visit
res = self.visit_call(expr)

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in visit_call
args = [self.visit(arg) for arg in call.args]

.
.
.

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in visit_call
args = [self.visit(arg) for arg in call.args]

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 138, in <listcomp>
args = [self.visit(arg) for arg in call.args]

File "/harddisk1/xxxx/.local/lib/python3.6/site-packages/tvm-0.6.0-py3.6-linux-x86_64.egg/tvm/relay/expr_functor.py", line 45, in visit
res = self.visit_call(expr)

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 164, in visit_call
kernel = _pack_weight(weight, kernel_shape, self.cfactor)

File "/harddisk1/xxxx/Projects/TVM_Projects/tvm/vta/python/vta/top/graphpack.py", line 62, in _pack_weight
assert int(dshape[1]) % cfactor == 0

AssertionError
```

---

<div class="post-metadata">

**Author:** ![sachacon](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@sachacon](https://discuss.tvm.apache.org/u/sachacon)\
**Post date:** [November 3, 2020, 5:51am UTC](https://discuss.tvm.apache.org/t/naming-convention-for-start-name-and-stop-name/5304/2 "2020-11-03T05:51:58Z")

</div>

Hi @wltz did you ever resolve this “assert int(dshape[1]) % cfactor == 0” error? I’m encountering the same issue in my code as well.

---

<div class="post-metadata">

**Author:** ![tang-jiapeng](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/tang-jiapeng/32/5617_2.png) [@tang-jiapeng](https://discuss.tvm.apache.org/u/tang-jiapeng)\
**Post date:** [August 14, 2024, 4:46pm UTC](https://discuss.tvm.apache.org/t/naming-convention-for-start-name-and-stop-name/5304/3 "2024-08-14T16:46:25Z")

</div>

I’m wondering if you have solved this problem. I also have this problem.
