Skip to content

Commit

Permalink
修改教程文档
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwei123456 committed Sep 16, 2020
1 parent c7b0d8a commit 124b71f
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 180 deletions.
8 changes: 4 additions & 4 deletions docs/source/clock_driven/4_conv_fashion_mnist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ ANN中常见的卷积神经网络,大多数是卷积+全连接层的形式,
self.fc = nn.Sequential(
nn.Flatten(),
layer.Dropout(0.7, behind_spiking_layer=True),
layer.Dropout(0.7, True),
nn.Linear(128 * 7 * 7, 128 * 3 * 3, bias=False),
neuron.LIFNode(tau=tau, v_threshold=v_threshold, v_reset=v_reset, surrogate_function=surrogate.ATan()),
layer.Dropout(0.7, behind_spiking_layer=True),
layer.Dropout(0.7, True),
nn.Linear(128 * 3 * 3, 128, bias=False),
neuron.LIFNode(tau=tau, v_threshold=v_threshold, v_reset=v_reset, surrogate_function=surrogate.ATan()),
nn.Linear(128, 10, bias=False),
Expand Down Expand Up @@ -153,10 +153,10 @@ ANN中常见的卷积神经网络,大多数是卷积+全连接层的形式,
)
self.fc = nn.Sequential(
nn.Flatten(),
layer.Dropout(0.7, behind_spiking_layer=True),
layer.Dropout(0.7, True),
nn.Linear(128 * 7 * 7, 128 * 3 * 3, bias=False),
neuron.LIFNode(tau=tau, v_threshold=v_threshold, v_reset=v_reset, surrogate_function=surrogate.ATan()),
layer.Dropout(0.7, behind_spiking_layer=True),
layer.Dropout(0.7, True),
nn.Linear(128 * 3 * 3, 128, bias=False),
neuron.LIFNode(tau=tau, v_threshold=v_threshold, v_reset=v_reset, surrogate_function=surrogate.ATan()),
nn.Linear(128, 10, bias=False),
Expand Down

0 comments on commit 124b71f

Please sign in to comment.