필터 지우기
필터 지우기

FLOPs of DAG neural network

조회 수: 12 (최근 30일)
DL
DL 2021년 5월 25일
댓글: David Willingham 2021년 5월 26일
Hi, everyone. Is there any way to measure the FLOPs or computational complexity of DAG neural network or functions? I tried to statistic the excution time then calculate the FLOPs by profile roughly, but I think DAG is based on C++ or accelerated, therefore, the result of FLOPs is not trustable? Any suggestion?

채택된 답변

David Willingham
David Willingham 2021년 5월 26일
Hi Dianxin,
FLOPs is a performance measure that's not typically used for Deep Learning. Performance can be measured in many ways, here's a list of some:
Throughput - E.g. Predictions per sec
Training Time - E.g. Time to reach x% of validation accuracy
Memory - E.g. How many MB of the network based on the weights
Power - E.g. For embedded devices, how much energy is required to make a prediction
Regards,
  댓글 수: 4
David Willingham
David Willingham 2021년 5월 26일
Hi, by default optmizations are not enabled for inference. You can download this support package to enable it for the "predict function".
If you want more optimizations, these are built into our Coder products, which automatically generate native code for the target environment.
MATLAB Coder (C & C++) - including Intel MKL-DNN for Intel processors and ARM Compute Library for ARM Cortex processors
GPU Coder (Cuda) - NVIDIA® CUDA libraries, including TensorRT™, cuDNN, cuFFT, cuSolver, and cuBLAS
David Willingham
David Willingham 2021년 5월 26일
For memory, see this post.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by