|
209 | 209 | }, |
210 | 210 | { |
211 | 211 | "cell_type": "code", |
212 | | - "execution_count": 5, |
| 212 | + "execution_count": 14, |
213 | 213 | "metadata": { |
214 | 214 | "ExecuteTime": { |
215 | | - "end_time": "2021-04-25T20:16:59.907029Z", |
216 | | - "start_time": "2021-04-25T20:16:59.900497Z" |
| 215 | + "end_time": "2021-04-25T20:27:57.577833Z", |
| 216 | + "start_time": "2021-04-25T20:27:57.573240Z" |
217 | 217 | } |
218 | 218 | }, |
219 | 219 | "outputs": [], |
|
223 | 223 | }, |
224 | 224 | { |
225 | 225 | "cell_type": "code", |
226 | | - "execution_count": 11, |
| 226 | + "execution_count": 15, |
227 | 227 | "metadata": { |
228 | 228 | "ExecuteTime": { |
229 | | - "end_time": "2021-04-25T20:17:21.038359Z", |
230 | | - "start_time": "2021-04-25T20:17:21.015209Z" |
| 229 | + "end_time": "2021-04-25T20:27:57.883569Z", |
| 230 | + "start_time": "2021-04-25T20:27:57.873327Z" |
231 | 231 | } |
232 | 232 | }, |
233 | 233 | "outputs": [ |
234 | 234 | { |
235 | 235 | "name": "stdout", |
236 | 236 | "output_type": "stream", |
237 | 237 | "text": [ |
238 | | - "J_g=tensor([-1.5020e-05, -1.5020e-05, -1.5020e-05, -1.5020e-05, -1.5020e-05,\n", |
239 | | - " -1.5020e-05]),\n", |
240 | | - "J_c=-1.5020295904832892e-05\n" |
| 238 | + "J_g=tensor([ 1.9498, -0.0728, 1.3574, 0.7588, 1.3956, 0.7595]),\n", |
| 239 | + "J_c=tensor([ 1.9498, -0.0728, 1.3574, 0.7588, 1.3956, 0.7595])\n" |
241 | 240 | ] |
242 | 241 | } |
243 | 242 | ], |
|
251 | 250 | }, |
252 | 251 | { |
253 | 252 | "cell_type": "code", |
254 | | - "execution_count": 12, |
| 253 | + "execution_count": 16, |
255 | 254 | "metadata": { |
256 | 255 | "ExecuteTime": { |
257 | | - "end_time": "2021-04-25T20:17:23.285413Z", |
258 | | - "start_time": "2021-04-25T20:17:23.279627Z" |
| 256 | + "end_time": "2021-04-25T20:28:05.686690Z", |
| 257 | + "start_time": "2021-04-25T20:28:05.681378Z" |
259 | 258 | } |
260 | 259 | }, |
261 | 260 | "outputs": [ |
262 | 261 | { |
263 | 262 | "data": { |
264 | 263 | "text/plain": [ |
265 | | - "tensor([[1.0000, 0.0000, 0.0000],\n", |
266 | | - " [0.0000, 1.0000, 0.0000],\n", |
267 | | - " [0.0000, 0.0000, 1.0000]])" |
| 264 | + "tensor([[ 1.9760, -1.3065, 1.2205],\n", |
| 265 | + " [ 0.5567, -0.8171, -1.6935],\n", |
| 266 | + " [ 0.0597, 2.1638, 2.1138]])" |
268 | 267 | ] |
269 | 268 | }, |
270 | | - "execution_count": 12, |
| 269 | + "execution_count": 16, |
271 | 270 | "metadata": {}, |
272 | 271 | "output_type": "execute_result" |
273 | 272 | } |
|
420 | 419 | }, |
421 | 420 | { |
422 | 421 | "cell_type": "code", |
423 | | - "execution_count": 19, |
| 422 | + "execution_count": 17, |
424 | 423 | "metadata": { |
425 | 424 | "ExecuteTime": { |
426 | | - "end_time": "2021-04-25T20:25:00.696600Z", |
427 | | - "start_time": "2021-04-25T20:25:00.688777Z" |
| 425 | + "end_time": "2021-04-25T20:51:57.518139Z", |
| 426 | + "start_time": "2021-04-25T20:51:57.513012Z" |
428 | 427 | } |
429 | 428 | }, |
430 | 429 | "outputs": [], |
431 | 430 | "source": [ |
432 | 431 | "x = torch.randn((5, 3))\n", |
433 | | - "bn = nn.BatchNorm1d(3)" |
| 432 | + "bn = nn.BatchNorm1d(3, affine=False)" |
434 | 433 | ] |
435 | 434 | }, |
436 | 435 | { |
437 | 436 | "cell_type": "code", |
438 | | - "execution_count": 20, |
| 437 | + "execution_count": 18, |
439 | 438 | "metadata": { |
440 | 439 | "ExecuteTime": { |
441 | | - "end_time": "2021-04-25T20:25:01.168809Z", |
442 | | - "start_time": "2021-04-25T20:25:01.158170Z" |
| 440 | + "end_time": "2021-04-25T20:51:58.028429Z", |
| 441 | + "start_time": "2021-04-25T20:51:58.009478Z" |
443 | 442 | } |
444 | 443 | }, |
445 | 444 | "outputs": [ |
446 | 445 | { |
447 | 446 | "data": { |
448 | 447 | "text/plain": [ |
449 | | - "tensor([[-1.1245, 1.3747, -0.5232],\n", |
450 | | - " [ 1.1031, 0.5880, 0.0641],\n", |
451 | | - " [-0.8741, 0.0202, -1.3274],\n", |
452 | | - " [-0.3750, -0.3597, 0.0675],\n", |
453 | | - " [ 1.2705, -1.6232, 1.7191]], grad_fn=<NativeBatchNormBackward>)" |
| 448 | + "tensor([[-1.6941, 0.2933, -0.2451],\n", |
| 449 | + " [-0.1313, -0.2711, 1.4740],\n", |
| 450 | + " [ 0.2754, -0.2282, 0.4445],\n", |
| 451 | + " [ 0.1287, -1.4409, -0.0721],\n", |
| 452 | + " [ 1.4213, 1.6469, -1.6014]])" |
454 | 453 | ] |
455 | 454 | }, |
456 | | - "execution_count": 20, |
| 455 | + "execution_count": 18, |
457 | 456 | "metadata": {}, |
458 | 457 | "output_type": "execute_result" |
459 | 458 | } |
|
0 commit comments