<mxfile host="Electron" type="device" version="28.0.6">
  <diagram id="tensor-indexing" name="tensor-indexing">
    <mxGraphModel page="1" pageWidth="1050" pageHeight="185" background="#ffffff">
      <root>
        <mxCell id="0"/><mxCell id="1" parent="0"/>
        <mxCell id="bounds" value="" style="fillColor=#ffffff;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1050" height="185" as="geometry"/></mxCell>
        <mxCell id="c0" value="col 0" style="text;html=0;fontFamily=Helvetica;fontSize=30;align=center;verticalAlign=middle;fontColor=#5d6470;" vertex="1" parent="1"><mxGeometry x="180" y="0" width="95" height="35" as="geometry"/></mxCell>
        <mxCell id="c1" value="col 1" style="text;html=0;fontFamily=Helvetica;fontSize=30;align=center;verticalAlign=middle;fontColor=#b8325f;" vertex="1" parent="1"><mxGeometry x="275" y="0" width="95" height="35" as="geometry"/></mxCell>
        <mxCell id="c2" value="col 2" style="text;html=0;fontFamily=Helvetica;fontSize=30;align=center;verticalAlign=middle;fontColor=#5d6470;" vertex="1" parent="1"><mxGeometry x="370" y="0" width="95" height="35" as="geometry"/></mxCell>
        <mxCell id="r0" value="row 0" style="text;html=0;fontFamily=Helvetica;fontSize=32;align=center;verticalAlign=middle;fontColor=#b7791f;" vertex="1" parent="1"><mxGeometry x="30" y="45" width="130" height="55" as="geometry"/></mxCell>
        <mxCell id="r1" value="row 1" style="text;html=0;fontFamily=Helvetica;fontSize=32;align=center;verticalAlign=middle;fontColor=#5d6470;" vertex="1" parent="1"><mxGeometry x="30" y="105" width="130" height="55" as="geometry"/></mxCell>
        <mxCell id="v1" value="1" style="rounded=0;html=0;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=38;fillColor=#fff4db;strokeColor=#b7791f;strokeWidth=2;fontColor=#202124;" vertex="1" parent="1"><mxGeometry x="180" y="40" width="95" height="60" as="geometry"/></mxCell>
        <mxCell id="v2" value="2" style="rounded=0;html=0;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=38;fillColor=#ffe1d6;strokeColor=#b8325f;strokeWidth=2;fontColor=#202124;" vertex="1" parent="1"><mxGeometry x="275" y="40" width="95" height="60" as="geometry"/></mxCell>
        <mxCell id="v3" value="3" style="rounded=0;html=0;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=38;fillColor=#fff4db;strokeColor=#b7791f;strokeWidth=2;fontColor=#202124;" vertex="1" parent="1"><mxGeometry x="370" y="40" width="95" height="60" as="geometry"/></mxCell>
        <mxCell id="v4" value="4" style="rounded=0;html=0;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=38;fillColor=#ffffff;strokeColor=#5d6470;strokeWidth=2;fontColor=#202124;" vertex="1" parent="1"><mxGeometry x="180" y="100" width="95" height="60" as="geometry"/></mxCell>
        <mxCell id="v5" value="5" style="rounded=0;html=0;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=38;fillColor=#fdecef;strokeColor=#b8325f;strokeWidth=2;fontColor=#202124;" vertex="1" parent="1"><mxGeometry x="275" y="100" width="95" height="60" as="geometry"/></mxCell>
        <mxCell id="v6" value="6" style="rounded=0;html=0;align=center;verticalAlign=middle;fontFamily=Helvetica;fontSize=38;fillColor=#ffffff;strokeColor=#5d6470;strokeWidth=2;fontColor=#202124;" vertex="1" parent="1"><mxGeometry x="370" y="100" width="95" height="60" as="geometry"/></mxCell>
        <mxCell id="row-code" value="x[0]: [1, 2, 3]" style="text;html=0;fontFamily=Helvetica;fontSize=34;align=left;verticalAlign=middle;fontColor=#b7791f;" vertex="1" parent="1"><mxGeometry x="550" y="40" width="475" height="60" as="geometry"/></mxCell>
        <mxCell id="col-code" value="x[:, 1]: [2, 5]" style="text;html=0;fontFamily=Helvetica;fontSize=34;align=left;verticalAlign=middle;fontColor=#b8325f;" vertex="1" parent="1"><mxGeometry x="550" y="100" width="475" height="60" as="geometry"/></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
  <diagram id="model-shapes" name="model-shapes">
    <mxGraphModel page="1" pageWidth="1050" pageHeight="185" background="#ffffff">
      <root>
        <mxCell id="0"/><mxCell id="1" parent="0"/>
        <mxCell id="bounds" value="" style="fillColor=#ffffff;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1050" height="185" as="geometry"/></mxCell>
        <mxCell id="a1" style="strokeColor=#5d6470;strokeWidth=2;endArrow=block;endSize=6;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="270" y="75" as="sourcePoint"/><mxPoint x="365" y="75" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="a2" style="strokeColor=#5d6470;strokeWidth=2;endArrow=block;endSize=6;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="695" y="75" as="sourcePoint"/><mxPoint x="790" y="75" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="input" value="Inputs&#xa;(4, 3)" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f6f5;strokeColor=#007c89;strokeWidth=2;fontColor=#202124;fontFamily=Helvetica;fontSize=34;align=center;verticalAlign=middle;spacing=5;" vertex="1" parent="1"><mxGeometry x="20" y="25" width="250" height="100" as="geometry"/></mxCell>
        <mxCell id="layer" value="nn.Linear&#xa;3 inputs, 2 outputs" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff4db;strokeColor=#b7791f;strokeWidth=2;fontColor=#202124;fontFamily=Helvetica;fontSize=32;align=center;verticalAlign=middle;spacing=5;" vertex="1" parent="1"><mxGeometry x="365" y="25" width="330" height="100" as="geometry"/></mxCell>
        <mxCell id="output" value="Outputs&#xa;(4, 2)" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fdecef;strokeColor=#b8325f;strokeWidth=2;fontColor=#202124;fontFamily=Helvetica;fontSize=34;align=center;verticalAlign=middle;spacing=5;" vertex="1" parent="1"><mxGeometry x="790" y="25" width="240" height="100" as="geometry"/></mxCell>
        <mxCell id="parameters" value="Weight shape: (2, 3)     Bias shape: (2,)" style="text;html=0;fontFamily=Helvetica;fontSize=32;fontColor=#5d6470;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="20" y="137" width="1010" height="42" as="geometry"/></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
  <diagram id="gradient-example" name="gradient-example">
    <mxGraphModel page="1" pageWidth="1050" pageHeight="225" background="#ffffff">
      <root>
        <mxCell id="0"/><mxCell id="1" parent="0"/>
        <mxCell id="bounds" value="" style="fillColor=#ffffff;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="1050" height="225" as="geometry"/></mxCell>
        <mxCell id="forward1" style="strokeColor=#007c89;strokeWidth=2;endArrow=block;endSize=6;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="80" as="sourcePoint"/><mxPoint x="395" y="80" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="forward2" style="strokeColor=#007c89;strokeWidth=2;endArrow=block;endSize=6;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="665" y="80" as="sourcePoint"/><mxPoint x="805" y="80" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="backward1" style="rounded=0;strokeColor=#b8325f;strokeWidth=2;endArrow=block;endSize=6;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="900" y="120" as="sourcePoint"/><mxPoint x="530" y="120" as="targetPoint"/><Array as="points"><mxPoint x="900" y="160"/><mxPoint x="530" y="160"/></Array></mxGeometry></mxCell>
        <mxCell id="backward2" style="rounded=0;strokeColor=#b8325f;strokeWidth=2;endArrow=block;endSize=6;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="500" y="120" as="sourcePoint"/><mxPoint x="145" y="120" as="targetPoint"/><Array as="points"><mxPoint x="500" y="160"/><mxPoint x="145" y="160"/></Array></mxGeometry></mxCell>
        <mxCell id="input" value="w = 2" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f6f5;strokeColor=#007c89;strokeWidth=2;fontColor=#202124;fontFamily=Helvetica;fontSize=34;align=center;verticalAlign=middle;spacing=5;" vertex="1" parent="1"><mxGeometry x="40" y="40" width="210" height="80" as="geometry"/></mxCell>
        <mxCell id="prediction" value="Prediction = 6" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff4db;strokeColor=#b7791f;strokeWidth=2;fontColor=#202124;fontFamily=Helvetica;fontSize=34;align=center;verticalAlign=middle;spacing=5;" vertex="1" parent="1"><mxGeometry x="395" y="40" width="270" height="80" as="geometry"/></mxCell>
        <mxCell id="loss" value="Loss = 16" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fdecef;strokeColor=#b8325f;strokeWidth=2;fontColor=#202124;fontFamily=Helvetica;fontSize=34;align=center;verticalAlign=middle;spacing=5;" vertex="1" parent="1"><mxGeometry x="805" y="40" width="210" height="80" as="geometry"/></mxCell>
        <mxCell id="times-input" value="multiply by 3" style="text;html=0;fontFamily=Helvetica;fontSize=30;fontColor=#007c89;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="225" y="0" width="200" height="30" as="geometry"/></mxCell>
        <mxCell id="square-error" value="(6 - 10) squared" style="text;html=0;fontFamily=Helvetica;fontSize=30;fontColor=#007c89;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="650" y="0" width="235" height="30" as="geometry"/></mxCell>
        <mxCell id="grad-w" value="dL / dw = -24" style="text;html=0;fontFamily=Helvetica;fontSize=32;fontStyle=1;fontColor=#b8325f;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="170" y="175" width="315" height="42" as="geometry"/></mxCell>
        <mxCell id="grad-pred" value="dL / dprediction = -8" style="text;html=0;fontFamily=Helvetica;fontSize=32;fontStyle=1;fontColor=#b8325f;align=center;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="545" y="175" width="390" height="42" as="geometry"/></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
