Skip to content

Commit

Permalink
Deploying to gh-pages from @ 8f700b1 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed May 31, 2024
1 parent c5e96be commit 8b10278
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
7 changes: 3 additions & 4 deletions post/2024-05-28-cuda_5.4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,11 @@ <h2 id="eager_garbage_collection"><a href="#eager_garbage_collection" class="hea
n_feature &#61; 1000
X &#61; rand&#40;n_feature, n_obs&#41;
y &#61; rand&#40;1, n_obs&#41;
train_data &#61; DataLoader&#40;&#40;X, y&#41; |&lt; gpu; batchsize &#61; 2048, shuffle&#61;false&#41;
train_data &#61; DataLoader&#40;&#40;X, y&#41; |&gt; gpu; batchsize &#61; 2048, shuffle&#61;false&#41;

model &#61; Dense&#40;n_feature, &gt;&#41; |&lt; gpu
loss&#40;m, _x, _y&#41; &#61; Flux.Losses.mse&#40;m&#40;_x&#41;, _&gt;&#41;
model &#61; Dense&#40;n_feature, 1&#41; |&gt; gpu
loss&#40;m, _x, _y&#41; &#61; Flux.Losses.mse&#40;m&#40;_x&#41;, _y&#41;
opt_state &#61; Flux.setup&#40;Flux.Adam&#40;&#41;, model&#41;
Flux.train&#33;&#40;loss, model, train_data, opt_state&#41;
for epoch in 1:100
Flux.train&#33;&#40;loss, model, train_data, opt_state&#41;
end</code></pre>
Expand Down
5 changes: 2 additions & 3 deletions post/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ using MLUtils: DataLoadern_obs &#61; 300_000
n_feature &#61; 1000
X &#61; rand&#40;n_feature, n_obs&#41;
y &#61; rand&#40;1, n_obs&#41;
train_data &#61; DataLoader&#40;&#40;X, y&#41; |&lt; gpu; batchsize &#61; 2048, shuffle&#61;false&#41;model &#61; Dense&#40;n_feature, &gt;&#41; |&lt; gpu
loss&#40;m, _x, _y&#41; &#61; Flux.Losses.mse&#40;m&#40;_x&#41;, _&gt;&#41;
train_data &#61; DataLoader&#40;&#40;X, y&#41; |&gt; gpu; batchsize &#61; 2048, shuffle&#61;false&#41;model &#61; Dense&#40;n_feature, 1&#41; |&gt; gpu
loss&#40;m, _x, _y&#41; &#61; Flux.Losses.mse&#40;m&#40;_x&#41;, _y&#41;
opt_state &#61; Flux.setup&#40;Flux.Adam&#40;&#41;, model&#41;
Flux.train&#33;&#40;loss, model, train_data, opt_state&#41;
for epoch in 1:100
Flux.train&#33;&#40;loss, model, train_data, opt_state&#41;
end</code></pre>
Expand Down
18 changes: 9 additions & 9 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,55 @@

<url>
<loc>https://juliagpu.org/post/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/rocm/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/learn/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/404/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/cuda/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/oneapi/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/metal/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://juliagpu.org/other/index.html</loc>
<lastmod>2024-05-28</lastmod>
<lastmod>2024-05-31</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
Expand Down

0 comments on commit 8b10278

Please sign in to comment.