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.
2 changes: 2 additions & 0 deletions chapter_linear-networks/linear-regression-concise.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ features, labels = d2l.synthetic_data(true_w, true_b, 1000)
```{.python .input}
def load_array(data_arrays, batch_size, is_train=True): #@save
"""构造一个Gluon数据迭代器"""
#将特征和标签打包成TensorDataset
dataset = gluon.data.ArrayDataset(*data_arrays)
#返回DataLoader,训练时打乱数据
return gluon.data.DataLoader(dataset, batch_size, shuffle=is_train)
```

Expand Down
Loading