jiazhihao/TASO

from .core import * ModuleNotFoundError: No module named 'taso.core'

Opened this issue · 4 comments

After doing
sudo make install -j 4
it shows

[ 43%] Building CXX object CMakeFiles/taso_runtime.dir/src/core/squeeze.cc.o
/taso/src/core/split.cc: In constructor 'taso::Split::Split(taso::Model*, const taso::Tensor&, int, const std::vector<int>&)':
/taso/src/core/split.cc:119:63: warning: '*this.taso::Split::<anonymous>.taso::OpBase::model' is used uninitialized [-Wuninitialized]
  119 |   : OpBase(_input, model, OP_SPLIT), axis(_axis), sizes(_sizes)
      |         

After doing
python3 setup.py install

When I import taso it gives

from .core import *
ModuleNotFoundError: No module named 'taso.core'

and I'm sure I have cpython installed

install cython work for me

Hi it did not work for me. Any idea how I can fix it?

Hi, what you import is the taso module in the source directory. You could try to change into another directory and import the installed taso package.

Look for lib_tasoruntime and add it to your $LD_LIBRARY_PATH. Also install cython before you install the python package it worked for me.