|
5 | 5 | "colab": { |
6 | 6 | "name": "1-intro-to-linear-algebra.ipynb", |
7 | 7 | "provenance": [], |
8 | | - "authorship_tag": "ABX9TyNv8VHNp0R6DABxQELV2Cto", |
| 8 | + "authorship_tag": "ABX9TyO4toL+odzCdics69uQ9+W4", |
9 | 9 | "include_colab_link": true |
10 | 10 | }, |
11 | 11 | "kernelspec": { |
|
968 | 968 | "outputId": "805ff724-1075-4b3e-a3d7-9d86d1d676a3" |
969 | 969 | }, |
970 | 970 | "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", |
972 | 972 | "x_t = np.matrix(x).T\n", |
973 | 973 | "x_t" |
974 | 974 | ], |
|
1139 | 1139 | "metadata": { |
1140 | 1140 | "id": "-0jbHgc5iijG", |
1141 | 1141 | "colab_type": "code", |
1142 | | - "colab": {} |
| 1142 | + "colab": { |
| 1143 | + "base_uri": "https://localhost:8080/", |
| 1144 | + "height": 34 |
| 1145 | + }, |
| 1146 | + "outputId": "eb20c8d1-a8ae-41b4-cd45-91f5247a2cf5" |
1143 | 1147 | }, |
1144 | 1148 | "source": [ |
1145 | 1149 | "x_tf = tf.Variable([25, 2, 5], dtype=tf.int8)\n", |
1146 | 1150 | "x_tf" |
1147 | 1151 | ], |
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 | + ] |
1163 | 1167 | }, |
1164 | 1168 | { |
1165 | 1169 | "cell_type": "code", |
1166 | 1170 | "metadata": { |
1167 | 1171 | "id": "s2TGDeqXnitZ", |
1168 | 1172 | "colab_type": "code", |
1169 | | - "colab": {} |
| 1173 | + "colab": { |
| 1174 | + "base_uri": "https://localhost:8080/", |
| 1175 | + "height": 34 |
| 1176 | + }, |
| 1177 | + "outputId": "15f4569a-a44d-4702-fdda-8e66470058f6" |
1170 | 1178 | }, |
1171 | 1179 | "source": [ |
1172 | 1180 | "x_pt = torch.tensor([25, 2, 5], dtype=torch.int8)\n", |
1173 | 1181 | "x_pt" |
1174 | 1182 | ], |
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 | + ] |
1190 | 1198 | }, |
1191 | 1199 | { |
1192 | 1200 | "cell_type": "markdown", |
|
0 commit comments