Files
openmlsys-zh/img/ch03/dynamic.svg
2022-01-25 19:46:29 +08:00

261 lines
13 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg5016"
xml:space="preserve"
width="762.47937"
height="246.65395"
viewBox="0 0 762.47937 246.65395"
sodipodi:docname="dynamic.svg"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs5020"><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5030"><path
d="M 0,1.2207e-4 H 960 V 540.00012 H 0 Z"
clip-rule="evenodd"
id="path5028" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5042"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5040" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5056"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5054" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5070"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5068" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5086"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5084" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5102"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5100" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5122"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5120" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5134"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5132" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5146"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5144" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5158"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5156" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5176"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5174" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5188"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5186" /></clipPath><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath5200"><path
d="M 1.4305e-5,0 H 960.00001 V 540 H 1.4305e-5 Z"
clip-rule="evenodd"
id="path5198" /></clipPath></defs><sodipodi:namedview
id="namedview5018"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="1.321875"
inkscape:cx="442.55319"
inkscape:cy="117.63593"
inkscape:window-width="2560"
inkscape:window-height="1361"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1"
inkscape:current-layer="g5022" /><g
id="g5022"
inkscape:groupmode="layer"
inkscape:label="dynamic"
transform="matrix(1.3333333,0,0,-1.3333333,-197.68062,478.01395)"><path
d="m 163.02,295.32 44.52,-20.85 -0.96,-2.03 -44.52,20.84 z m 44.45,-18.33 4.69,-5.92 -7.55,-0.19 z"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path5034" /><g
id="g5036"><g
id="g5038"
clip-path="url(#clipPath5042)"><text
transform="matrix(1,0,0,-1,245.38,273.79)"
style="font-style:italic;font-variant:normal;font-weight:bold;font-size:20.04px;font-family:'Times New Roman';-inkscape-font-specification:TimesNewRomanPS-BoldItalicMT;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5046"><tspan
x="0"
y="0"
id="tspan5044">Y</tspan></text></g></g><path
d="m 167.62,228.57 34.61,23.81 -1.28,1.86 -34.61,-23.81 z m 34.95,21.32 3.65,6.61 -7.47,-1.05 z"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path5048" /><g
id="g5050"><g
id="g5052"
clip-path="url(#clipPath5056)"><text
transform="matrix(1,0,0,-1,149.28,287.81)"
style="font-style:italic;font-variant:normal;font-weight:bold;font-size:18.024px;font-family:'Times New Roman';-inkscape-font-specification:TimesNewRomanPS-BoldItalicMT;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5060"><tspan
x="0"
y="0"
id="tspan5058">W</tspan></text></g></g><path
d="m 237.42,265.55 27.18,-0.01 v -2.24 h -27.18 z m 26.05,2.25 6.75,-3.38 -6.75,-3.37 z"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path5062" /><g
id="g5064"><g
id="g5066"
clip-path="url(#clipPath5070)"><text
transform="matrix(1,0,0,-1,149.28,223.01)"
style="font-style:italic;font-variant:normal;font-weight:bold;font-size:18px;font-family:'Times New Roman';-inkscape-font-specification:TimesNewRomanPS-BoldItalicMT;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5074"><tspan
x="0"
y="0"
id="tspan5072">A</tspan></text></g></g><path
d="m 206.22,264 c 0,7.09 5.88,12.84 13.14,12.84 7.26,0 13.14,-5.75 13.14,-12.84 0,-7.09 -5.88,-12.84 -13.14,-12.84 -7.26,0 -13.14,5.75 -13.14,12.84 z"
style="fill:none;stroke:#000000;stroke-width:2.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path5078" /><g
id="g5080"
transform="translate(-3.9716313,-4.5390074)"><g
id="g5082"
clip-path="url(#clipPath5086)"><text
transform="matrix(1,0,0,-1,216.24,252.65)"
style="font-variant:normal;font-weight:normal;font-size:32.04px;font-family:'Times New Roman';-inkscape-font-specification:TimesNewRomanPSMT;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5090"><tspan
x="0"
y="0"
id="tspan5088">*</tspan></text></g></g><path
d="m 269.34,265.2 c 0,11.1 9,20.1 20.1,20.1 11.1,0 20.1,-9 20.1,-20.1 0,-11.1 -9,-20.1 -20.1,-20.1 -11.1,0 -20.1,9 -20.1,20.1 z"
style="fill:none;stroke:#000000;stroke-width:2.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path5094" /><g
id="g5096"><g
id="g5098"
clip-path="url(#clipPath5102)"><text
transform="matrix(1,0,0,-1,273.22,260.16)"
style="font-variant:normal;font-weight:normal;font-size:14.04px;font-family:'Times New Roman';-inkscape-font-specification:TimesNewRomanPSMT;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5106"><tspan
x="0 9.3646803 15.59844 24.12072"
y="0"
sodipodi:role="line"
id="tspan5104">ReLU</tspan></text></g></g><path
d="m 309.54,265.55 27.18,-0.01 v -2.24 h -27.18 z m 26.05,2.25 6.75,-3.38 -6.75,-3.37 z"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path5108" /><path
d="m 364.2,269.34 h 55.08 v 4.86 l 9.72,-9.72 -9.72,-9.72 v 4.86 H 364.2 Z"
style="fill:#4472c4;fill-opacity:1;fill-rule:evenodd;stroke:none"
id="path5110" /><path
d="m 364.2,269.34 h 55.08 v 4.86 l 9.72,-9.72 -9.72,-9.72 v 4.86 H 364.2 Z"
style="fill:none;stroke:#2f528f;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path5112" /><path
d="m 434.58,304.56 c 0,27.21 22.05,49.26 49.26,49.26 v 0 c 27.21,0 49.26,-22.05 49.26,-49.26 v -80.28 c 0,-27.21 -22.05,-49.26 -49.26,-49.26 v 0 c -27.21,0 -49.26,22.05 -49.26,49.26 z"
style="fill:none;stroke:#2f528f;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path5114" /><g
id="g5116"><g
id="g5118"
clip-path="url(#clipPath5122)"><text
transform="matrix(1,0,0,-1,459.77,298.97)"
style="font-variant:normal;font-weight:normal;font-size:24px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5126"><tspan
x="0 24"
y="0"
sodipodi:role="line"
id="tspan5124">计算</tspan></text></g></g><g
id="g5128"><g
id="g5130"
clip-path="url(#clipPath5134)"><text
transform="matrix(1,0,0,-1,459.77,270.17)"
style="font-variant:normal;font-weight:normal;font-size:24px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5138"><tspan
x="0 24"
y="0"
sodipodi:role="line"
id="tspan5136">框架</tspan></text></g></g><g
id="g5140"><g
id="g5142"
clip-path="url(#clipPath5146)"><text
transform="matrix(1,0,0,-1,459.77,241.37)"
style="font-variant:normal;font-weight:normal;font-size:24px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5150"><tspan
x="0 24"
y="0"
sodipodi:role="line"
id="tspan5148">算子</tspan></text></g></g><g
id="g5152"><g
id="g5154"
clip-path="url(#clipPath5158)"><text
transform="matrix(1,0,0,-1,459.77,212.42)"
style="font-variant:normal;font-weight:normal;font-size:24px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5162"><tspan
x="0 24"
y="0"
sodipodi:role="line"
id="tspan5160">分发</tspan></text></g></g><path
d="m 545.52,269.34 h 55.08 v 4.86 l 9.72,-9.72 -9.72,-9.72 v 4.86 h -55.08 z"
style="fill:#4472c4;fill-opacity:1;fill-rule:evenodd;stroke:none"
id="path5164" /><path
d="m 545.52,269.34 h 55.08 v 4.86 l 9.72,-9.72 -9.72,-9.72 v 4.86 h -55.08 z"
style="fill:none;stroke:#2f528f;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path5166" /><path
d="m 630.78,295.98 c 0,24.26 19.66,43.92 43.92,43.92 v 0 c 24.26,0 43.92,-19.66 43.92,-43.92 v -59.76 c 0,-24.26 -19.66,-43.92 -43.92,-43.92 v 0 c -24.26,0 -43.92,19.66 -43.92,43.92 z"
style="fill:none;stroke:#2f528f;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path5168" /><g
id="g5170"><g
id="g5172"
clip-path="url(#clipPath5176)"><text
transform="matrix(1,0,0,-1,650.88,277.1)"
style="font-variant:normal;font-weight:normal;font-size:24px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5180"><tspan
x="0 24"
y="0"
sodipodi:role="line"
id="tspan5178">硬件</tspan></text></g></g><g
id="g5182"><g
id="g5184"
clip-path="url(#clipPath5188)"><text
transform="matrix(1,0,0,-1,650.88,248.18)"
style="font-variant:normal;font-weight:normal;font-size:24.024px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5192"><tspan
x="0 24"
y="0"
sodipodi:role="line"
id="tspan5190">执行</tspan></text></g></g><g
id="g5194"><g
id="g5196"
clip-path="url(#clipPath5200)"><text
transform="matrix(1,0,0,-1,182.09,331.66)"
style="font-variant:normal;font-weight:normal;font-size:32.064px;font-family:'Microsoft YaHei';-inkscape-font-specification:MicrosoftYaHei;writing-mode:lr-tb;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="text5204"><tspan
x="0 32.040001 64.080002 96.120003"
y="0"
sodipodi:role="line"
id="tspan5202">前端定义</tspan></text></g></g></g></svg>