Skip to content

Instantly share code, notes, and snippets.

View taineleau-zz's full-sized avatar

Danlu Chen taineleau-zz

View GitHub Profile
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
def __init__(self, in_planes, out_planes, dropRate=0.0):
super(BasicBlock, self).__init__()
self.bn1 = nn.BatchNorm2d(in_planes)
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
def __init__(self, in_planes, out_planes, dropRate=0.0):
super(BasicBlock, self).__init__()
self.bn1 = nn.BatchNorm2d(in_planes)
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
def __init__(self, in_planes, out_planes, dropRate=0.0):
super(BasicBlock, self).__init__()
self.bn1 = nn.BatchNorm2d(in_planes)
@taineleau-zz
taineleau-zz / example.lua
Last active November 7, 2016 04:43
A Torch Autograd example for hessian (gradient of gradient).
--
-- Created by IntelliJ IDEA.
-- User: taineleau
-- Date: 10/7/16
-- Time: 10:16
-- To change this template use File | Settings | File Templates.
--
local grad = require 'autograd'
grad.optimize(true)
@taineleau-zz
taineleau-zz / 2016CompilerProject.md
Last active May 13, 2021 18:45
2016 Fudan Compiler Project

#2016 编译 Project 说明

任课老师:邱锡鹏

Project TA:陈丹露

通知

提交地址为 ftp://by:[email protected]

@taineleau-zz
taineleau-zz / setup.sh
Last active September 26, 2016 01:44
Setup deep learning environment on aws
sudo apt-get -y install zsh git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo chsh ubuntu -s /bin/zsh
sudo apt-get update
sudo apt-get -y install build-essential linux-image-extra-virtual axel
sudo vim /etc/modprobe.d/blacklist-nouveau.conf