vfdff opened a new issue, #17562:
URL: https://github.com/apache/tvm/issues/17562

   
   ### Expected behavior
   
   works fine without error message with the tvm building from source code
   
   ### Actual behavior
   
   report No module named 'tvm'
   
![image](https://github.com/user-attachments/assets/115ee998-12a8-46aa-a73c-c1bb5adef0c9)
   
   ### Environment
   
   Ubuntu 7.5.0-3ubuntu1~18.04 (cat /proc/version)
   Python 3.11.0
   
   ### Steps to reproduce
   
   1、According **https://tvm.hyper.ai/docs/install/from_source**, I build the 
tvm base on source code, and I can see libtvm.so libtvm_runtime.so under 
/home/zhongyunde/tvm/build
   
![image](https://github.com/user-attachments/assets/5d852f47-b620-4375-a975-6c85da473b01)
   
   2、I config **export TVM_LIBRARY_PATH=/home/zhongyunde/tvm/build** ,and test 
it with **python test.py**
   ```
   import tvm
   from tvm import relax
   from tvm.relax.frontend import nn
   
   
   class MLPModel(nn.Module):
       def __init__(self):
           super(MLPModel, self).__init__()
           self.fc1 = nn.Linear(784, 256)
           self.relu1 = nn.ReLU()
           self.fc2 = nn.Linear(256, 10)
   
       def forward(self, x):
           x = self.fc1(x)
           x = self.relu1(x)
           x = self.fc2(x)
           return x
   ```
   
   ### Triage
   
   Please refer to the list of label tags 
[here](https://github.com/apache/tvm/wiki/Issue-Triage-Labels) to find the 
relevant tags and add them below in a bullet format (example below).
   
   * needs-triage
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to