Does anyone have the source code for the alexnet add-on?

I am currently working on a project that uses alexnet and I was wondering if anyone had the source code for it.

Answers (1)

Hi Matthew,
Alexnet is fully accessible programmatically via the ‘alexnet’ function. When you call the function, MATLAB loads a pretrained DAGNetwork object that includes all layer definitions, weights, and connections. While the internal training process and some implementation-level details are abstracted, you can easily inspect and modify the architecture.
To view the source-like definition of the network, you can use:
net = alexnet;
layers = net.Layers;
lgraph = layerGraph(net);
For more details regarding ‘alexnet’, you can refer to the following documentations:
Hope this helps!

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

Asked:

on 4 Jul 2017

Answered:

on 9 Jun 2025

Community Treasure Hunt

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

Start Hunting!