Skip to content

Instantly share code, notes, and snippets.

View raphaelsty's full-sized avatar
🔅

Raphael Sourty raphaelsty

🔅
View GitHub Profile
@thomasjpfan
thomasjpfan / hacks.py
Last active March 7, 2020 00:06
Do not use this anywhere
from abc import ABC, abstractmethod
from inspect import signature
from functools import wraps
from numbers import Integral
from typing import Optional
def _isinstance(item, type_to_check):
if hasattr(type_to_check, '__origin__'):
if type_to_check.__origin__ == typing.Union:
@taylorpaul
taylorpaul / README.md
Last active November 20, 2023 10:27
Tensorboard on SLURM

Environment:

Tensorflow: v0.11.0rc2 OS: CENTOS 6.8 (No root access)

Description:

  1. The tensorboardSLURM.sh can be run with the following command to start a tensorboard server on a SLURM cluster:
sbatch --array=0-0 tensorboardSLURM.sh