Skip to content

Instantly share code, notes, and snippets.

View omsrisagar's full-sized avatar
💭
Partially Observable Multi-Agent Deep Reinforcement Learning :D

Vidyasagar Sadhu omsrisagar

💭
Partially Observable Multi-Agent Deep Reinforcement Learning :D
  • SRI International
  • Menlo Park, CA, USA
  • X @vshssvs7
View GitHub Profile
@omsrisagar
omsrisagar / Steps_multiple_cuda_environments.md
Created May 21, 2024 20:09 — forked from garg-aayush/Steps_multiple_cuda_environments.md
Managing multiple CUDA versions using environment modules in Ubuntu

Steps to manage multiple CUDA environments

Latest Update: May 19th, 2024

This gist contains all the steps required to:

  • Install multiple CUDA versions (e.g., CUDA 11.8 and CUDA 12.1
  • Manage multiple CUDA environments on Ubuntu using the utility called environment modules.
  • Use this approach to avoid CUDA environment conflicts.

Environment Modules is a package that provides for the dynamic modification of a user's environment via modulefiles. You can find more on it at https://modules.readthedocs.io/en/latest/

@omsrisagar
omsrisagar / Dockerfile
Created May 19, 2022 18:50 — forked from lukoshkin/Dockerfile
Recipe of a docker image with Open-MPI 3.1.4 and mpi4py
FROM ubuntu:18.04
ENV USER mpitest
ENV HOME /home/$USER
ENV MPI_DIR=/opt/ompi
ENV PATH="$MPI_DIR/bin:$HOME/.local/bin:$PATH"
ENV LD_LIBRARY_PATH="$MPI_DIR/lib:$LD_LIBRARY_PATH"
WORKDIR $HOME
RUN apt-get -q update \
from graphviz import Digraph
import torch
from torch.autograd import Variable, Function
def iter_graph(root, callback):
queue = [root]
seen = set()
while queue:
fn = queue.pop()
if fn in seen:
@omsrisagar
omsrisagar / nn_mult.py
Created July 22, 2021 23:57 — forked from palashahuja/nn_mult.py
Neural Network Multiplication Approximator
# Reference
# =========
# Why does deep and cheap learning work so well?∗
# Henry W. Lin, Max Tegmark, and David Rolnick
# Dept. of Physics, Harvard University, Cambridge, MA 02138
# Dept. of Physics, Massachusetts Institute of Technology, Cambridge, MA 02139 and Dept. of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139
# Here the x input takes two numbers and produces the multiplication as output
import numpy as np
# multiplication approximator
@omsrisagar
omsrisagar / load_tf.py
Created July 21, 2021 04:42 — forked from willwhitney/load_tf.py
load tensorboard log files into pandas dataframes
from tensorboard.backend.event_processing import event_accumulator
import tensorflow as tf
import glob
import pandas as pd
tf.logging.set_verbosity(tf.logging.ERROR)
basedir = "/path/to/log/directory/"
def load_tf(dirname):
prefix = basedir + "tboard/VisibleSwimmer-v2/"