Ver Fonte

formatting

subDesTagesMitExtraKaese há 4 anos atrás
pai
commit
df5a2db51b
2 ficheiros alterados com 6 adições e 5 exclusões
  1. 1 1
      c++/lib/json
  2. 5 4
      doku/layer/conv2d.md

+ 1 - 1
c++/lib/json

@@ -1 +1 @@
-Subproject commit e7452d87783fbf6e9d320d515675e26dfd1271c5
+Subproject commit 8575fdf9ad41844692b18fb9db4d28fea4e9282a

+ 5 - 4
doku/layer/conv2d.md

@@ -23,8 +23,9 @@ Output:
     ```python
     for sample in range(batchSize):
       for outputChannel in range(outputChannels):
-        output[sample][outputChannel] = sum([f(
-          input[sample][channel], 
-          kernel[channel][outputChannel]
-        ) for channel in range(channels)])
+        for channel in range(channels):
+          output[sample][outputChannel] += f(
+            input[sample][channel], 
+            kernel[channel][outputChannel]
+          )
     ```