(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
from __future__ import print_function | |
import argparse | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
from torchvision import datasets, transforms | |
from torch.autograd import Variable | |
# Training settings |
waking=$(acpitool -w |grep enabled |awk '{print $2}') | |
for dev in $waking; do | |
echo "$dev" > /proc/acpi/wakeup | |
done | |
sudo acpitool -w | |
systemctl suspend |
import itertools | |
from collections import defaultdict | |
import numpy as np | |
from cvxopt import glpk, matrix, spmatrix | |
glpk.options = {"msg_lev": "GLP_MSG_ERR"} | |
FROZEN_POS_EDGE = -1 |