Skip to content

Commit

Permalink
Merge pull request caicloud#36 from ScorpioCPH/minor-fix-comments
Browse files Browse the repository at this point in the history
Minor fix comments
  • Loading branch information
perhapszzy authored May 26, 2017
2 parents a784ef0 + 925302d commit 3fa01a0
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.matmul(input_tensor, weights1) + biases1\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1)\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return layer1\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return layer1"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.matmul(input_tensor, weights1) + biases1\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1)\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return layer1\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return layer1"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.matmul(input_tensor, weights1) + biases1\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1)\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return layer1\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return layer1"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.matmul(input_tensor, weights1) + biases1\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1)\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return layer1\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return layer1"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"outputs": [],
"source": [
"def inference(input_tensor, avg_class, weights1, biases1, weights2, biases2):\n",
" # 使用滑动平均类\n",
" # 不使用滑动平均类\n",
" if avg_class == None:\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, weights1) + biases1)\n",
" return tf.matmul(layer1, weights2) + biases2\n",
"\n",
" else:\n",
" # 不使用滑动平均类\n",
" # 使用滑动平均类\n",
" layer1 = tf.nn.relu(tf.matmul(input_tensor, avg_class.average(weights1)) + avg_class.average(biases1))\n",
" return tf.matmul(layer1, avg_class.average(weights2)) + avg_class.average(biases2) "
]
Expand Down

0 comments on commit 3fa01a0

Please sign in to comment.