- Install Cannon printer drivers
sudo apt update; sudo apt install software-properties-common cups-backend-bjnp
- Make sure user has password (add password using
sudo passwd $user
) - Follow instructions to install server https://pimylifeup.com/raspberry-pi-print-server/
- Chrome doesn't work to add a printer - worked on Safari
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from math import ceil | |
from typing import Optional, Tuple, Union | |
import torch | |
from torch import Tensor, nn | |
from torch.distributed._tensor import DTensor, Replicate, Shard, distribute_module, distribute_tensor | |
from torch.distributed._tensor.op_schema import OpSchema, OutputSharding | |
from torch.distributed._tensor.ops.embedding_ops import embedding_rules | |
from torch.distributed._tensor.ops.utils import register_prop_rule | |
from torch.distributed._tensor.placement_types import DTensorSpec, _Partial |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env bash | |
# peak_memory [command ...] | |
# Run the given command line in the background and kill if script exits | |
trap 'kill $(jobs -p) 2&> /dev/null' EXIT | |
"$@" & | |
pid=$! phys_peak=0 not_avail_peak=0 | |
# while command still running | |
while ps -p $pid &>/dev/null; do | |
sleep 1 | |
mem_total="$(cat /proc/meminfo | grep 'MemTotal:' | grep -oe '\([0-9.]*\)')" |
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 xlsxwriter | |
def excel_formatter(writer, sheet, df, num_format = None, auto_filter = False, auto_fit = False): | |
workbook = writer.book | |
worksheet = writer.sheets[sheet] | |
cols = list(df.columns) | |
max_row, max_col = df.shape | |
num_format = num_format if num_format else {} | |
num_format_types = { |
NewerOlder