Skip to content

Instantly share code, notes, and snippets.

View jeffra's full-sized avatar

Jeff Rasley jeffra

View GitHub Profile
@jeffra
jeffra / learning-switch-multitable.py
Created October 11, 2014 21:04
Basic L2 learning switch (OF1.3) using 2 tables based on Ryu's simple_switch_13.py (https://github.com/osrg/ryu-book/blob/master/en/source/sources/simple_switch_13.py)
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.lib.packet import packet
from ryu.lib.packet import ethernet
class SimpleSwitch13(app_manager.RyuApp):
import torch
import torch.distributed as dist
import time
import argparse
import os
import deepspeed
TRIALS = 5
# 6GB