diff --git a/pytorch-01/pytorch-01.ipynb b/pytorch-01/pytorch-01.ipynb index 6af8c798..84c1f13c 100644 --- a/pytorch-01/pytorch-01.ipynb +++ b/pytorch-01/pytorch-01.ipynb @@ -465,7 +465,7 @@ "output_type": "stream", "text": [ "输入参数X的形状: (2, 3)\n", - "激活函数softmoid输出形状: (2, 3)\n", + "激活函数sigmoid输出形状: (2, 3)\n", "激活函数relu输出形状: (2, 3)\n", "激活函数softmax输出形状: (2, 3)\n" ] @@ -473,7 +473,7 @@ ], "source": [ "X=np.random.rand(2,3)\n", - "def softmoid(x):\n", + "def sigmoid(x):\n", " return 1/(1+np.exp(-x))\n", "def relu(x):\n", " return np.maximum(0,x)\n",