I’ve started a new project for experiment documentation (Spyrkle 183).
It should be able to generate an interactive graph in an HTML page that you can style using CSS.

  
      github.com
  
  
    tariqdaouda/Spyrkle/blob/master/demos/demo_pyTorch_graph_only.py 354
import Spyrkle.notebook as notebook
import Spyrkle.pages.core_pages as pages
import Spyrkle.pages.graph_pages as graphs
import Spyrkle.pages.graphs_more as gmore

import numpy
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim


# Define model
class TheModelClass(nn.Module):
    def __init__(self):
        super(TheModelClass, self).__init__()
        self.conv1 = nn.Conv2d(3, 6, 5)
        self.pool = nn.MaxPool2d(2, 2)
        self.conv2 = nn.Conv2d(6, 16, 5)
        self.fc1 = nn.Linear(16 * 5 * 5, 120)


  This file has been truncated. show original