1
$\begingroup$

I'm CS student. I'm just getting started in data science and machine learning. Can i use laptops with integrated graphics card in the data science and machine learning projects? Will pytorch and tensorflow work in this case?

$\endgroup$

2 Answers 2

1
$\begingroup$

All machine learning and Deep Learning frameworks take advantage of the multiple cores of the GPUs (CUDA) to make tensor calculations faster. The integrated graphics cards don't have CUDA support so the frameworks will use the CPU.

I recommend you to write this line in your code:

device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")

And send the processes to the device. Doing this PyTorch will use the GPU if it's available.

$\endgroup$
0
$\begingroup$

Yes. Do not worry about it. Pytorch uses your CPU by default. Tensorflow uses both your GPU and CPU, but it does not matter if it is integrated or not. Keep in mind that it will probably run slower than if you had a discrete graphics, but I assume that for your projects as a student, it will not matter much.

$\endgroup$
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.