Skip to content

Instantly share code, notes, and snippets.

Sang-gil Lee L0SG

Block or report user

Report or block L0SG

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
L0SG /
Last active Feb 5, 2020
PyTorch example: freezing a part of the net (including fine-tuning)
import torch
from torch import nn
from torch.autograd import Variable
import torch.nn.functional as F
import torch.optim as optim
# toy feed-forward net
class Net(nn.Module):
def __init__(self):
You can’t perform that action at this time.