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
L0SG / freeze_example.py
Last active Nov 6, 2019
PyTorch example: freezing a part of the net (including fine-tuning)
View freeze_example.py
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.