jiazhihao / TASO

The Tensor Algebra SuperOptimizer for Deep Learning
Apache License 2.0
692 stars 90 forks source link

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

Open YFeather opened 1 year ago

YFeather commented 1 year ago

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

wwbitejotunn commented 1 year ago

install cython work for me

AnouarITI commented 1 year ago

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

sploving1 commented 1 year ago

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.

AnouarITI commented 1 year ago

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.