gpu

ImportError: cannot import name 'OrderedDict' from 'typing'

ImportError: cannot import name 'OrderedDict' from 'typing' Question: C:Usersjpala.condaenvstfpython.exe C:UsersjpalaDocumentsMLtrain.py Traceback (most recent call last): File "C:UsersjpalaDocumentsMLtrain.py", line 5, in <module> import tensorflow as tf File "C:Usersjpala.condaenvstflibsite-packagestensorflow__init__.py", line 37, in <module> from tensorflow.python.tools import module_util as _module_util File "C:Usersjpala.condaenvstflibsite-packagestensorflowpython__init__.py", line 42, in <module> from tensorflow.python import data File "C:Usersjpala.condaenvstflibsite-packagestensorflowpythondata__init__.py", line 21, in <module> from tensorflow.python.data …

Total answers: 1

TensorFlow GPU problem 'libnvinfer.so.7' and ' 'libnvinfer.so.7'' could not load

TensorFlow GPU problem 'libnvinfer.so.7' and ' 'libnvinfer.so.7'' could not load Question: I installed TensorFlow under WSL 2, Ubuntu 22.04 (Jammy Jellyfish), I followed the instructions in Install TensorFlow with pip. *I also installed Nvidia drivers for Windows and in my other WSL 2, I use GPU-supported simulation program. Everything seemed OK. I didn’t get any error message …

Total answers: 1

PyTorch memory leak reference cycle in for loop

PyTorch memory leak reference cycle in for loop Question: I am facing a memory leak when iteratively updating tensors in PyTorch on my Mac M1 GPU using the PyTorch mps interface. The following is a minimal reproducible example that replicates the behavior: import torch def leak_example(p1, device): t1 = torch.rand_like(p1, device = device) # torch.cat((torch.diff(ubar.detach(), …

Total answers: 1

Can we really do parallel computing using numba python library in python?

Can we really do parallel computing using numba python library in python? Question: I am new to CUDA and was going through Running Python script on GPU. Performance with GPU is better than that without GPU (without GPU: 3.525673059999974, with GPU: 0.07701390800002628) for the following code executed in a colab notebook: from numba import jit, …

Total answers: 1

FileNotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for ../Saved_Model/1variablesvariables

FileNotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for ../Saved_Model/1variablesvariables Question: I am trying to build a image classifier API. Built the model using Google Colab becasue i dont have a GPU. Am using CPU and donwloaded the model into the API application. But get this error when i try to access my …

Total answers: 2

How to run PyTorch on GPU with CUDA 10.2 on Windows 7?

How to run PyTorch on GPU with CUDA 10.2 on Windows 7? Question: I want to test run some finite-difference time domain (FDTD) simulations using parallelization on a GPU and compare the speed to CPU-based simulation runs. This is basically my very first attempt at using GPU acceleration for scientific computing. My system configuration: CPU: …

Total answers: 1

Anaconda Xgboost unable to find GPU

Anaconda Xgboost unable to find GPU Question: It seems that Anaconda is unable recognise my GPU, GPU is RTX2070 (Driver version 510.47.03), system Ubuntu 20.04, cudatoolkit 11.3.1, cudnn 8.2.1, XGboost 1.5.2 via pip install. When I run XGboost with GPU enable it shows: XGBoostError: [01:24:12] ../src/gbm/gbtree.cc:531: Check failed: common::AllVisibleGPUs() >= 1 (0 vs. 1) : …

Total answers: 2

GPutil not working properly on NVIDIA Jetson Xavier NX

GPutil not working properly on NVIDIA Jetson Xavier NX Question: I’ve written code that collects telemetry information from the device and saves it in a .csv file. However, I’m not able to detect the GPU from the GPUtil: import GPUtil GPU = GPUtil.getAvailable() print(GPU) print(GPUtil.__version__) Output: [] 1.4.0 I didn’t find information if it has …

Total answers: 2