Skip to content

Instantly share code, notes, and snippets.

View EricWiener's full-sized avatar

Eric Wiener EricWiener

View GitHub Profile
@bhpfelix
bhpfelix / tf_vs_pt.py
Created June 25, 2019 10:52
Comparing TensorFlow and PyTorch Operation (AvgPool, Conv2d)
import numpy as np
np.random.seed(0)
import torch
import torch.nn as nn
import tensorflow as tf
import matplotlib.pyplot as plt
slim = tf.contrib.slim
@chfritz
chfritz / use_robot.sh
Last active September 2, 2024 02:39
Simple script to setup your machine env to use a remote ROS master
#!/bin/bash
# Simple script to setup your machine env to use a remote ROS master
# example usage: use_robot.sh myrobot
# where myrobot is a resolvable hostname or an IP address
NORMAL=`tput sgr0 2> /dev/null`
GREEN=`tput setaf 2 2> /dev/null`
# get the IP of our device we'll use to conect to the host