Big O computation of CNN architecture in deep learning

조회 수: 7 (최근 30일)
Little Flower
Little Flower 2022년 8월 19일
답변: Shivani Dixit 2022년 8월 23일
Hi,
I need to compute the complexity of AlexNet architecture theoretically using Big O notation. How should I compute that? Thanks in advance

채택된 답변

Shivani Dixit
Shivani Dixit 2022년 8월 23일
Hello,
Generally, we do not disclose the inner workings of built-in MATLAB functions, which includes providing specific values for the Big-O complexity that can be expected.
To find the information about typical algorithms, you can try to empirically determine an estimate. The following example gives a reference where we determine the Big O complexity of the built in MATLAB functioneig()” :
T = []; N = 100:10:1000;
for n = N, disp(n)
A = rand(n);
tic; eig(A); t = toc; T = [T t];
end
figure; plot(log10(N),log10(T)); grid on;
As the figure window gets generated,
  1. Go to "Tools > Basic Fitting" and choose a linear fit.
  2. This will provide the equation with slope ‘a’ of the line, which is the exponent of n in the Big-O notation: t = O(n^a).
This code gives an example how the execution time of a built in MATLAB function “eig()” depends upon the input.
You can try to extend same sorts of experiments to CNN architecture to get a rough computation of Big O for the same.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by