Tensor Cores and deep learning

조회 수: 6 (최근 30일)
Gerardo Suarez
Gerardo Suarez 2019년 6월 24일
댓글: Alexander Sonin 2021년 12월 3일
Dear all
I have a GeForce RTX 2060. How can I take advantage of its 240 tensor cores for deep learning? I have read that I should set the precision to FP16, but using the "trainnetwork" function there does not seem to be any option.
Thank you
  댓글 수: 1
Carpenter86
Carpenter86 2019년 9월 5일
Great question! I have the same one. Did you find any answer?

댓글을 달려면 로그인하십시오.

채택된 답변

Krishna Bindumadhavan
Krishna Bindumadhavan 2019년 9월 14일
편집: Krishna Bindumadhavan 2019년 9월 14일
Currently, there is no support for training a neural network with half precision data type. This is expected in a future release.
You can however take advantage of tensor cores, while generating code for deploying a trained neural network with GPU Coder. You can look at Deep Learning Prediction with NVIDIA TensorRT example , but set the DataType property of the DeepLearningConfig to 'fp16'. This will use the Tensor cores on a Volta or Turing card such as the RTX series for inference.
In addition, MATLAB supports the half data type via the half precision object in the fixed point designer toolbox: https://www.mathworks.com/help/fixedpoint/ref/half.html?s_tid=doc_ta. General code generation support for the half type, via MATLAB Coder and GPU coder is under active development and can be expected in an upcoming release.
  댓글 수: 1
Alexander Sonin
Alexander Sonin 2021년 12월 3일
Krishna kept silent about the exact answer to this question: MATLAB cannot use tensor cores to train neural networks !!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning with GPU Coder에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by