Add todos.
\newcommand\todo[1]{\textcolor{blue}{TODO: #1}}
Add todos.
\newcommand\todo[1]{\textcolor{blue}{TODO: #1}}
| import torch | |
| import numpy as np | |
| class Model(torch.nn.Module): | |
| def forward(self, x): | |
| return torch.from_numpy(x).float().cuda() | |
| ngpus = 2 | |
| x = np.ones((10, 10)) |
Request a gpu for interactive use.
srun --gres=gpu:1 --partition=gpu --pty /bin/bash
Request a node exclusively.
srun --partition=gpu --node=1 --exclusive --pty /bin/bash
| ~/Downloads/CoreDataUtil.app/Contents/MacOS/CoreDataPro --model ./Contents/Frameworks/AgendaFoundation.framework/Versions/A/Resources/UIDatabaseModel.momd/UIDatabaseModel.mom \ | |
| --store /Users/adrozdov/Library/Containers/com.momenta.agenda.macos/Data/Documents/Agenda/DerivedInfo/UI\ Database/UIDatabase.db \ | |
| --storeType SQLite |
| """ | |
| keys: | |
| [3, 4] | |
| r (10, 5): | |
| [[22. 7. 20. 21. 6.] | |
| [ 8. 14. 6. 5. 5.] | |
| [ 1. 0. 1. 5. 4.] | |
| [17. 15. 0. 7. 6.] | |
| [ 0. 7. 7. 7. 4.] |
| import unittest | |
| import tempfile | |
| import os | |
| import torch | |
| def models_eq(a, b): | |
| """ | |
| Not the most elegant method. Compares two models' parameters. |
| { | |
| "jobName": "deeprecs-train-job", | |
| "artifact": "artifact-deeprecs-train", | |
| "artifactTag": "latest", | |
| "mlApplication": "com.ebay.oss.krylov.workflow.app.GenericMLApplication", | |
| "executionParameters": { | |
| "hadoop": { | |
| "hadoopCluster": "ares", | |
| "batchUser": "b_merch" | |
| }, |
| $ tree -fi ~/data/tiny-imagenet-5 | grep -v test | pbcopy | |
| /Users/adrozdov/data/tiny-imagenet-5 | |
| /Users/adrozdov/data/tiny-imagenet-5/train | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705 | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705/images | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705/images/n09193705_0.JPEG | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705/images/n09193705_1.JPEG | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705/images/n09193705_10.JPEG | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705/images/n09193705_100.JPEG | |
| /Users/adrozdov/data/tiny-imagenet-5/train/n09193705/images/n09193705_101.JPEG |
| 14155 | |
| 20 | |
| 108 | |
| 8575 | |
| 976 | |
| 34242 | |
| 27648 | |
| 3181 | |
| 8575 | |
| 2026 |