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..60b569b2d 100644 --- a/chapter_linear-networks/linear-regression-concise.md +++ b/chapter_linear-networks/linear-regression-concise.md @@ -393,8 +393,11 @@ trainer = paddle.optimizer.SGD(learning_rate=0.03, ```{.python .input} num_epochs = 3 +# 遍历所有训练轮次 for epoch in range(num_epochs): +# 遍历数据迭代器中的每一批数据 for X, y in data_iter: + with autograd.record(): l = loss(net(X), y) l.backward() @@ -407,6 +410,7 @@ for epoch in range(num_epochs): #@tab pytorch num_epochs = 3 for epoch in range(num_epochs): +# 遍历所有训练轮次 for X, y in data_iter: l = loss(net(X) ,y) trainer.zero_grad()