Hi all , i am new to using single board computers (jetson nano) .
I am trying to build the Jetbot project as provided on the offcial page .
So after all the errors and correction of code with the help of forums i have reached to a particular stage , and really not able move forward.
This is the code i am trying to execute:
import torch
import torch.optim as optim
import torch.nn.functional as F
import torchvision
import torchvision.datasets as datasets
import torchvision.models as models
import torchvision.transforms as transforms
import glob
import PIL.Image
import os
import numpy as np
And this is the error i get:
OSError Traceback (most recent call last)
<ipython-input-2-8dc16a23a375> in <module>
----> 1 import torch
2 import torch.optim as optim
3 import torch.nn.functional as F
4
5 import torchvision
~/.local/lib/python3.6/site-packages/torch/__init__.py in <module>
193 # See Note [Global dependencies]
194 if USE_GLOBAL_DEPS:
--> 195 _load_global_deps()
196 from torch._C import *
197
~/.local/lib/python3.6/site-packages/torch/__init__.py in _load_global_deps()
146 lib_path = os.path.join(os.path.dirname(here), 'lib', lib_name)
147
--> 148 ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
149
150
/usr/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
346
347 if handle is None:
--> 348 self._handle = _dlopen(self._name, mode)
349 else:
350 self._handle = handle
**OSError: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block**
I tried this solution , but didnt work.
I have jetpack4.5.1 on my Jetson nano 4gb version and followed these steps to build the sd card from scratch and its on 10W mode.
Please let me if i have to specify anything else .Thank you