1.以下为latex代码
2.gitbash中运行
pdflatex vggish.tex
`\documentclass[border=15pt, multi, tikz]{
standalone}
%\usepackage{
blocks}
\usepackage{
import}
\subimport{
../../layers/}{
init}
\usetikzlibrary{
positioning}
//定义各层颜色
\def\ConvColor{
rgb:yellow,5;red,2.5;white,5}
\def\ConvReluColor{
rgb:yellow,5;red,5;white,5}
\def\PoolColor{
rgb:red,1;black,0.3}
\def\FcColor{
rgb:blue,5;red,2.5;white,5}
\def\FcReluColor{
rgb:blue,5;red,5;white,4}
\def\SoftmaxColor{
rgb:magenta,5;black,7}
\begin{
document}
\begin{
tikzpicture}
\tikzstyle{
connection}=[ultra thick,every node/.style={
sloped,allow upside down},draw=\edgecolor,opacity=0.7]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Draw Layer Blocks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% conv1
*//shift={(0,0,0)}] at (0,0,0) → 以(0,0,0)作为起点放置在(0,0,0)处
// {RightBandedBox={name=cr1,caption=conv1 → 定义层的信息
//xlabel={
{"64",}},ylabel=96,zlabel=64 → xlabel为图片的宽度,ylabel为图片的高度,zlabel为深度
//"64"这里有一个数代表有一层,但是这个后面必须加逗号
//height=40,width=2,depth=40 → 定义表示这一层的块体的大小和宽度*
\pic[shift={
(0,0,0)}] at (0,0,0