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
function _helper_conda_available() { | |
$(command -v conda &> /dev/null) && \ | |
$(command -v conda activate &> /dev/null) | |
} | |
function _helper_fail { | |
printf '%s\n' "FAIL: $1" >&2 | |
: "${__fail_fast:?$1}"; | |
} |
This file has been truncated, but you can view the full file.
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
{ | |
"schemaVersion": 1, | |
"traceEvents": [ | |
{ | |
"ph": "X", "cat": "python_function", | |
"name": "torch/autograd/profiler.py(195): _start_trace", "pid": 2503043, "tid": 2503043, | |
"ts": 1636574014809640, "dur": 13, | |
"args": { | |
"External id": 0, |
This file has been truncated, but you can view the full file.
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
{ | |
"schemaVersion": 1, | |
"traceEvents": [ | |
{ | |
"ph": "X", "cat": "python_function", | |
"name": "torch/autograd/profiler.py(195): _start_trace", "pid": 2716172, "tid": 2716172, | |
"ts": 1636394679957789, "dur": 6, | |
"args": { | |
"External id": 0, |
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
[DUMP kernel.cpp:2913] TensorExprKernel graph: | |
[DUMP kernel.cpp:2913] graph(%0 : Float(1, 72, 112, 112, strides=[903168, 12544, 112, 1], requires_grad=0, device=cuda:0), | |
[DUMP kernel.cpp:2913] %1 : Float(1, 72, 112, 112, strides=[903168, 12544, 112, 1], requires_grad=0, device=cuda:0)): | |
[DUMP kernel.cpp:2913] %self.blocks.0.0.has_residual : bool = prim::Constant[value=1]() | |
[DUMP kernel.cpp:2913] %3 : float = prim::Constant[value=1.0000000000000001e-05]() | |
[DUMP kernel.cpp:2913] %4 : float = prim::Constant[value=0.10000000000000001]() | |
[DUMP kernel.cpp:2913] %self.bn1.training : bool = prim::Constant[value=0]() | |
[DUMP kernel.cpp:2913] %self.blocks.1.0.bn1.running_mean : Float(144, strides=[1], requires_grad=0, device=cuda:0) = prim::Constant[value=<Tensor>]() | |
[DUMP kernel.cpp:2913] %self.blocks.1.0.bn1.running_var : Float(144, strides=[1], requires_grad=0, device=cuda:0) = prim::Constant[value=<Tensor>]() | |
[DUMP kernel.cpp:2913] %8 : int = prim::Constant[value=1]() |
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
import argparse | |
import atexit | |
import multiprocessing | |
import multiprocessing.dummy | |
import os | |
import pickle | |
import shutil | |
import subprocess | |
import tempfile | |
import uuid |
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
make_commit_env(){( set -e | |
ROOT=$(git rev-parse --show-toplevel) | |
COMMIT="$1" | |
PY_VERSION="${2:-3.7}" | |
COMMIT_ESCAPED=$(echo "${COMMIT}" | sed 's#/#_#g') | |
TREE_PATH="${ROOT}/../pytorch_worktrees/tree-${COMMIT_ESCAPED}-repo" | |
git worktree prune |
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
make_commit_env(){( set -e | |
ROOT=$(git rev-parse --show-toplevel) | |
COMMIT="$1" | |
PY_VERSION="${2:-3.7}" | |
COMMIT_ESCAPED=$(echo "${COMMIT}" | sed 's#/#_#g') | |
TREE_PATH="${ROOT}/../pytorch_worktrees/tree-${COMMIT_ESCAPED}-repo" | |
git worktree prune |
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
import argparse | |
import multiprocessing.dummy | |
import os | |
import pickle | |
import shutil | |
import subprocess | |
import tempfile | |
import uuid | |
import torch |
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
import argparse | |
import multiprocessing | |
import multiprocessing.dummy | |
import os | |
import pickle | |
import queue | |
import random | |
import sys | |
import subprocess | |
import tempfile |
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
""" | |
$ python fuzz_conv.py | |
NOTE: After killing with ctrl-c, it is generally necessary to kill stragglers: | |
$ pkill -f fuzz_conv | |
""" | |
import argparse |
NewerOlder