Skip to content

How to add some function in topi/nn/? #568

@Arthur-Shi

Description

@Arthur-Shi

I am trying add some function in topi.nn, But after I add one my function, i cannot run the test files.

python '/home/aries/tvm/topi/recipe/conv/copydepth.py'
Traceback (most recent call last):
File "/home/aries/tvm/topi/recipe/conv/copydepth.py", line 197, in
test_depthwise_conv2d_nchw()
File "/home/aries/tvm/topi/recipe/conv/copydepth.py", line 38, in test_depthwise_conv2d_nchw
DepthwiseConv2d = topi.nn.gaidepthwise_conv2d_nchw(Input, Filter, Stride, padding)
AttributeError: 'module' object has no attribute 'gaidepthwise_conv2d_nchw'

So I tried to install the tvm and topi again. But not make them.
But now I cannot run any test files.

TVM: Initializing cython mode...
Traceback (most recent call last):
File "/home/aries/tvm/topi/recipe/conv/depthwise_conv2d_test.py", line 2, in
import tvm
File "/home/aries/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/init.py", line 5, in
from . import tensor
File "/home/aries/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/tensor.py", line 6, in
from . import make as _make
File "/home/aries/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/make.py", line 130, in
_init_api("tvm.make")
File "/home/aries/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/_ffi/function.py", line 268, in _init_api
for name in list_global_func_names():
File "/home/aries/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/_ffi/function.py", line 229, in list_global_func_names
check_call(_LIB.depthwise_conv2d_nchwTVMFuncListGlobalNames(ctypes.byref(size),
File "/usr/lib/python2.7/ctypes/init.py", line 375, in getattr
func = self.getitem(name)
File "/usr/lib/python2.7/ctypes/init.py", line 380, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/aries/.local/lib/python2.7/site-packages/tvm-0.1.0-py2.7-linux-x86_64.egg/tvm/libtvm.so: undefined symbol: depthwise_conv2d_nchwTVMFuncListGlobalNames

What can I do now? And how to add some function in the topi/nn module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions