<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>深度学习 on 进击的骑士</title>
    <link>https://knight134.com/tags/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/</link>
    <description>Recent content in 深度学习 on 进击的骑士</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 15 May 2024 11:00:00 +0800</lastBuildDate>
    <atom:link href="https://knight134.com/tags/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>PyTorch 基础：张量（Tensor）操作详解</title>
      <link>https://knight134.com/posts/2024-05-15-pytorch-basics/</link>
      <pubDate>Wed, 15 May 2024 11:00:00 +0800</pubDate>
      <guid>https://knight134.com/posts/2024-05-15-pytorch-basics/</guid>
      <description>&lt;p&gt;PyTorch 是当前最流行的深度学习框架之一。一切的基础都是 Tensor（张量）。&lt;/p&gt;
&lt;h3 id=&#34;创建张量&#34;&gt;创建张量&lt;/h3&gt;
&lt;p&gt;python&lt;/p&gt;
&lt;p&gt;import torch&lt;/p&gt;
&lt;p&gt;创建一个 2x3 的随机张量&lt;/p&gt;
&lt;p&gt;x = torch.rand(2, 3)&lt;/p&gt;
&lt;p&gt;print(x)&lt;/p&gt;
&lt;h2 id=&#34;查看形状&#34;&gt;查看形状&lt;/h2&gt;
&lt;p&gt;print(x.shape)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
