diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 71e1183c8..69d10c70d 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -21,7 +21,7 @@ on: permissions: id-token: write - contents: read + contents: write jobs: build_docker_image: @@ -32,6 +32,8 @@ jobs: working-directory: ./ci/docker steps: - uses: actions/checkout@v3 + with: + token: ${{ secrets.CI_PAT}} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2 with: diff --git a/anaconda_projects/db/project_filebrowser.db b/anaconda_projects/db/project_filebrowser.db new file mode 100644 index 000000000..d7e75dbf5 Binary files /dev/null and b/anaconda_projects/db/project_filebrowser.db differ diff --git a/chapter_linear-networks/linear-regression-concise.md b/chapter_linear-networks/linear-regression-concise.md index 7c52228f2..65d200eaa 100644 --- a/chapter_linear-networks/linear-regression-concise.md +++ b/chapter_linear-networks/linear-regression-concise.md @@ -177,6 +177,10 @@ net.add(nn.Dense(1)) #@tab pytorch # nn是神经网络的缩写 from torch import nn +# 创建一个简单的神经网络 +# 它只包含一个全连接层 +# 输入:2个数字 +# 输出:1个数字 net = nn.Sequential(nn.Linear(2, 1)) ```