This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def forever(factory, *av, **kav): | |
yield from factory(*av, **kav) | |
.. | |
for item in forever(read_blocked_dataset, ds, partition, compression='gzip'): | |
print(item) # this repeats forever |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Converts ODT (LibreOffice) file to cu-MD | |
python3 -m venv .venv | |
. .venv/bin/activate | |
pip install -U fire lxml lxmlx | |
python -m odt2md -h | |
''' | |
import zipfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Demostrates what seem to be a performance bug (or puzzle) in PyTorch: | |
conv2d operation on trained weights is 20-50x slower than using random weights | |
''' | |
import contextlib | |
import torch | |
from torch import nn | |
import time |