C
C
CeBePHblY2019-08-01 07:08:29
Python
CeBePHblY, 2019-08-01 07:08:29

If I change python to c++ can I train a neural network? faster?

There is a ready-made self-written neural network in python 3. The problem is that in the neural network I use a loop to recalculate epochs. There is an 8-core processor, and python executes the entire cycle on one processor core (The problem of multithreading in python). Is it possible to parallelize calculations across cores in C++? To speed up epoch calculations.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey c0re, 2019-08-01
@erge

What is the problem with multithreading in Python?
there are modules threading, subprocess, multiprocessing
multithreading in python

N
nrgian, 2019-08-01
@nrgian

do it on the video card.
there are libraries that can use the capabilities of the GPU.
programming language is not important.
if you want to personally program everything and it is on the central processor - yes, C ++ will be significantly faster than Python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question