PyTorchStepByStep
PyTorchStepByStep copied to clipboard
importing data_generation.square_sequences failing
I am getting following when I try import, any idea???
[root@localhost PyTorchStepByStep]# python3 -c "import data_generation.square_sequences"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'data_generation.square_sequences'
I made similar boilerplate code dir1/dir1a.py and it works:
python3 -c "import dir1.dir1a"
[root@localhost PyTorchStepByStep]# cat dir1/dir1a.py
def dir1a():
print("dir1a:")
[root@localhost PyTorchStepByStep]# git remote -v
origin https://github.com/dvgodoy/PyTorchStepByStep.git (fetch)
origin https://github.com/dvgodoy/PyTorchStepByStep.git (push)
[root@localhost PyTorchStepByStep]# pwd
/root/gg/git/codelab/gpu/ml/tf/tf-from-scratch/3/PyTorchStepByStep
/root/gg/git/codelab/gpu/ml/tf/tf-from-scratch/3/PyTorchStepByStep
[root@localhost PyTorchStepByStep]# uname -r
6.1.77kernel_org
[root@localhost PyTorchStepByStep]# cat /etc/os-release | grep -i cent
NAME="CentOS Stream"
ID="centos"
PRETTY_NAME="CentOS Stream 9"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
[root@localhost PyTorchStepByStep]# pip3 list | grep torch
pytorch-triton-rocm 2.1.0+dafe145982
torch 2.2.0.dev20231209+rocm5.7
torchaudio 2.2.0.dev20231209+rocm5.7
torchbench 0.1 /root/gg/git/benchmark
torchvision 0.17.0.dev20231209+rocm5.7