Architecture Summary
Project Settings
Layer Builder
0 layersDrag layers to reorder. Changes update the diagram automatically.
Diagram Styling
Interactive Architecture Diagram
| # | Layer | Type | Input | Output | Activation | Parameters | Memory | Status |
|---|
Architecture A
Architecture B
| Metric | A | B | Difference |
|---|
Formula Used
Dense layer parameters
Convolution output size
Convolution parameters
How to Use
- Choose a preset or build an architecture from scratch.
- Add layers and configure each layer’s dimensions and options.
- Drag layer cards to change their execution order.
- Review calculated shapes, parameters, memory, FLOPs, and warnings.
- Adjust diagram styling and export the finished architecture.
Example Architecture Data
| Layer | Configuration | Typical output | Purpose |
|---|---|---|---|
| Input | 28 × 28 × 1 | 28 × 28 × 1 | Receives a grayscale image. |
| Conv2D | 32 filters, 3 × 3, same | 28 × 28 × 32 | Extracts local spatial features. |
| Max Pool | 2 × 2, stride 2 | 14 × 14 × 32 | Reduces spatial dimensions. |
| Dense | 128 units, ReLU | 128 | Combines extracted features. |
| Output | 10 units, Softmax | 10 | Returns 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.