-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColab.html
More file actions
74 lines (67 loc) · 1.3 KB
/
Colab.html
File metadata and controls
74 lines (67 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<html>
<head>
<title>Useful Linux Commands (in Colab)</title>
</head>
<body>
<p>关于x.mean(dim=0,keepdim=True)的一些问题</p>
<p></p>
<table border="2">
<tr>
<th>define 一个3*4的数组</th>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td>mean</td>
</tr>
<tr>
<td> </td>
<td>1</td><!-- tr表示行。td表示列 -->
<td>2</td>
<td>3</td><!-- tr表示行。td表示列 -->
<td>4</td>
<td>2.5</td>
</tr>
<tr>
<td> </td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>6.5</td>
</tr>
<tr>
<td> </td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>10.5</td>
</tr>
<tr>
<td>mean</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
</table>
<p>mean(dim=0)-->[5., 6., 7., 8.]</p>
<p>mean(dim=1)-->[ 2.5000, 6.5000, 10.5000]</p>
<p>mean(dim=0,keepdim=True)-->[[5., 6., 7., 8.]]</p>
<p>mean(dim=1,keepdim=True)-->[[ 2.5000],[ 6.5000],[10.5000]]</p>
<p>这是段落3。</p>
<p>段落元素由 p 标签定义。</p>
</body>
<body>
<p>body 元素的内容会显示在浏览器中。</p>
<p>title 元素的内容会显示在浏览器的标题栏中。</p>
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
<h7>This is a heading</h7>
<p>这是段落1。</p>
<p>这是段落2。</p>
<p>这是段落3。</p>
<p>段落元素由 p 标签定义。</p>
</body>