How can count number of memory operations in N*N MLP?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Furat Alobaidy
am 26 Jan. 2021
Kommentiert: Furat Alobaidy
am 28 Jan. 2021
Hi ;
kindly , i need count approximately the number of memory operation required for MLP with 4*4 input , 8 hiden nerons and one output nuerons
so the MLP toplogy : 4 - 8 -1
is there any equation can be used to count the number of memory operations please ?
0 Kommentare
Akzeptierte Antwort
Gaurav Garg
am 28 Jan. 2021
Hi Furat,
You can calculate the number of operations manually.
Number of operations = O(Batch_size * Σ (weights+bias) * sizeofdatatype)
Number of memory operations is a function of batch_size (the number of inputs given to the MLP), weights and bias (Each neuron connection is given a weight, depending on the number of layers and neurons in each layer, you can calculate weights and bias), and sizeofdatatype (depending on the input, the data type for each weight and bias is also defined).
However, If memory limitations are a problem, the amount of temporary storage needed can be reduced by a factor of N. You can refer to the link here.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Neural Simulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!