Skip to content

Commit b53b987

Browse files
committed
minor updates
1 parent 41a0d85 commit b53b987

File tree

1 file changed

+42
-34
lines changed

1 file changed

+42
-34
lines changed

notebooks/1_intro_to_linear_algebra.ipynb

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"name": "1-intro-to-linear-algebra.ipynb",
77
"provenance": [],
8-
"authorship_tag": "ABX9TyNv8VHNp0R6DABxQELV2Cto",
8+
"authorship_tag": "ABX9TyO4toL+odzCdics69uQ9+W4",
99
"include_colab_link": true
1010
},
1111
"kernelspec": {
@@ -968,7 +968,7 @@
968968
"outputId": "805ff724-1075-4b3e-a3d7-9d86d1d676a3"
969969
},
970970
"source": [
971-
"# ...but can transpose a matrix with a dimension of length 1, which mathematically equivalent: \n",
971+
"# ...but can transpose a matrix with a dimension of length 1, which is mathematically equivalent: \n",
972972
"x_t = np.matrix(x).T\n",
973973
"x_t"
974974
],
@@ -1139,54 +1139,62 @@
11391139
"metadata": {
11401140
"id": "-0jbHgc5iijG",
11411141
"colab_type": "code",
1142-
"colab": {}
1142+
"colab": {
1143+
"base_uri": "https://localhost:8080/",
1144+
"height": 34
1145+
},
1146+
"outputId": "eb20c8d1-a8ae-41b4-cd45-91f5247a2cf5"
11431147
},
11441148
"source": [
11451149
"x_tf = tf.Variable([25, 2, 5], dtype=tf.int8)\n",
11461150
"x_tf"
11471151
],
1148-
"execution_count": 0,
1149-
"outputs": []
1150-
},
1151-
{
1152-
"cell_type": "code",
1153-
"metadata": {
1154-
"id": "jNsJSH6cSjgG",
1155-
"colab_type": "code",
1156-
"colab": {}
1157-
},
1158-
"source": [
1159-
"# transpose"
1160-
],
1161-
"execution_count": 0,
1162-
"outputs": []
1152+
"execution_count": 42,
1153+
"outputs": [
1154+
{
1155+
"output_type": "execute_result",
1156+
"data": {
1157+
"text/plain": [
1158+
"<tf.Variable 'Variable:0' shape=(3,) dtype=int8, numpy=array([25, 2, 5], dtype=int8)>"
1159+
]
1160+
},
1161+
"metadata": {
1162+
"tags": []
1163+
},
1164+
"execution_count": 42
1165+
}
1166+
]
11631167
},
11641168
{
11651169
"cell_type": "code",
11661170
"metadata": {
11671171
"id": "s2TGDeqXnitZ",
11681172
"colab_type": "code",
1169-
"colab": {}
1173+
"colab": {
1174+
"base_uri": "https://localhost:8080/",
1175+
"height": 34
1176+
},
1177+
"outputId": "15f4569a-a44d-4702-fdda-8e66470058f6"
11701178
},
11711179
"source": [
11721180
"x_pt = torch.tensor([25, 2, 5], dtype=torch.int8)\n",
11731181
"x_pt"
11741182
],
1175-
"execution_count": 0,
1176-
"outputs": []
1177-
},
1178-
{
1179-
"cell_type": "code",
1180-
"metadata": {
1181-
"id": "dJyc8LJnSl6Q",
1182-
"colab_type": "code",
1183-
"colab": {}
1184-
},
1185-
"source": [
1186-
"# transpose"
1187-
],
1188-
"execution_count": 0,
1189-
"outputs": []
1183+
"execution_count": 43,
1184+
"outputs": [
1185+
{
1186+
"output_type": "execute_result",
1187+
"data": {
1188+
"text/plain": [
1189+
"tensor([25, 2, 5], dtype=torch.int8)"
1190+
]
1191+
},
1192+
"metadata": {
1193+
"tags": []
1194+
},
1195+
"execution_count": 43
1196+
}
1197+
]
11901198
},
11911199
{
11921200
"cell_type": "markdown",

0 commit comments

Comments
 (0)