Neural Network Architecture Diagram Calculator

Build, inspect, validate, compare, and export neural network architectures with automatic tensor shapes, parameter counts, memory estimates, FLOPs, presets, and interactive diagrams for learning.

Architecture Summary

Ready to analyse the current architecture.
Not checked

Project Settings

Layer Builder

0 layers

Drag layers to reorder. Changes update the diagram automatically.

Diagram Styling

Interactive Architecture Diagram

Use the wheel or trackpad to scroll. Select a block to edit its layer.
#LayerTypeInputOutputActivationParametersMemoryStatus

Architecture A

Architecture B

MetricABDifference

Formula Used

Dense layer parameters

Parameters = (Input units × Output units) + Output units

Convolution output size

Output = floor(((Input + 2P − D(K−1) − 1) / S) + 1)

Convolution parameters

Parameters = (Kernel H × Kernel W × Input channels × Filters) + Filters

How to Use

  1. Choose a preset or build an architecture from scratch.
  2. Add layers and configure each layer’s dimensions and options.
  3. Drag layer cards to change their execution order.
  4. Review calculated shapes, parameters, memory, FLOPs, and warnings.
  5. Adjust diagram styling and export the finished architecture.

Example Architecture Data

LayerConfigurationTypical outputPurpose
Input28 × 28 × 128 × 28 × 1Receives a grayscale image.
Conv2D32 filters, 3 × 3, same28 × 28 × 32Extracts local spatial features.
Max Pool2 × 2, stride 214 × 14 × 32Reduces spatial dimensions.
Dense128 units, ReLU128Combines extracted features.
Output10 units, Softmax10Returns class probabilities.

Frequently Asked Questions

What does the calculator produce?

It creates a visual architecture diagram and a numerical model summary. It also checks common dimension errors.

Are parameter counts exact?

Common dense, convolutional, recurrent, embedding, normalisation, and attention layers use standard formulas. Custom layers use an editable estimate.

How are FLOPs estimated?

The calculator applies practical operation estimates for supported layers. Framework profilers may report slightly different totals.

Can I create residual connections?

Yes. Set a skip-source index on a layer. The diagram displays a curved residual connection.

Can I compare architectures?

Capture the current model as Architecture A or B. The comparison table shows parameter, memory, and FLOP differences.

Does the calculator save projects?

Yes. Browser storage preserves the current architecture locally. JSON files provide portable backups.

Which precision settings are available?

FP64, FP32, FP16, BF16, INT8, and custom byte sizes are supported. Memory estimates update immediately.

Can diagrams be exported?

SVG, PNG, PDF, JSON, and CSV exports are included. Printing is also supported.

Does it require a database?

No database is required. The calculator runs in the browser after the PHP page loads.

Related Calculators

Neuron Activation PlotActivation Function GraphLoss Landscape PlotGradient Distribution HistogramWeight Distribution HistogramGradient Flow PlotLearning-Rate CurveAttention HeatmapEmbedding Projection PlotConvolution Feature Map

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.