Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

permissions:
id-token: write
contents: read
contents: write

jobs:
build_docker_image:
Expand All @@ -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:
Expand Down
Binary file added anaconda_projects/db/project_filebrowser.db
Binary file not shown.
4 changes: 4 additions & 0 deletions chapter_linear-networks/linear-regression-concise.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
Loading