SYMBOL INDEX (146 symbols across 19 files) FILE: datasets/cifar100.py class Cifar100 (line 13) | class Cifar100(Dataset): method __init__ (line 14) | def __init__(self, root_path, split='train', image_size=32, method __len__ (line 62) | def __len__(self): method __getitem__ (line 65) | def __getitem__(self, index): class MetaCifar100 (line 71) | class MetaCifar100(Cifar100): method __init__ (line 72) | def __init__(self, root_path, split='train', image_size=32, method __len__ (line 90) | def __len__(self): method __getitem__ (line 93) | def __getitem__(self, index): class CifarFS (line 118) | class CifarFS(Cifar100): method __init__ (line 119) | def __init__(self, *args): class MetaCifarFS (line 124) | class MetaCifarFS(MetaCifar100): method __init__ (line 125) | def __init__(self, *args): class FC100 (line 130) | class FC100(Cifar100): method __init__ (line 131) | def __init__(self, *args): class MetaFC100 (line 136) | class MetaFC100(MetaCifar100): method __init__ (line 137) | def __init__(self, *args): FILE: datasets/cub200.py class CUB200 (line 13) | class CUB200(Dataset): method __init__ (line 14) | def __init__(self, root_path, split='train', image_size=84, method _load_image (line 59) | def _load_image(self, index): method __len__ (line 65) | def __len__(self): method __getitem__ (line 68) | def __getitem__(self, index): class MetaCUB200 (line 75) | class MetaCUB200(CUB200): method __init__ (line 76) | def __init__(self, root_path, split='train', image_size=84, method __len__ (line 94) | def __len__(self): method __getitem__ (line 97) | def __getitem__(self, index): FILE: datasets/datasets.py function register (line 9) | def register(name): function make (line 16) | def make(name, **kwargs): function collate_fn (line 23) | def collate_fn(batch): FILE: datasets/inatural.py class INat2017 (line 13) | class INat2017(Dataset): method __init__ (line 14) | def __init__(self, root_path, split='train', image_size=84, method _load_image (line 59) | def _load_image(self, index): method __len__ (line 65) | def __len__(self): method __getitem__ (line 68) | def __getitem__(self, index): class MetaINat2017 (line 75) | class MetaINat2017(INat2017): method __init__ (line 76) | def __init__(self, root_path, split='train', image_size=84, method __len__ (line 94) | def __len__(self): method __getitem__ (line 97) | def __getitem__(self, index): FILE: datasets/mini_imagenet.py class MiniImageNet (line 14) | class MiniImageNet(Dataset): method __init__ (line 15) | def __init__(self, root_path, split='train', image_size=84, method __len__ (line 64) | def __len__(self): method __getitem__ (line 67) | def __getitem__(self, index): class MetaMiniImageNet (line 74) | class MetaMiniImageNet(MiniImageNet): method __init__ (line 75) | def __init__(self, root_path, split='train', image_size=84, method __len__ (line 93) | def __len__(self): method __getitem__ (line 96) | def __getitem__(self, index): FILE: datasets/tiered_imagenet.py class TieredImageNet (line 14) | class TieredImageNet(Dataset): method __init__ (line 15) | def __init__(self, root_path, split='train', image_size=84, method __len__ (line 65) | def __len__(self): method __getitem__ (line 68) | def __getitem__(self, index): class MetaTieredImageNet (line 75) | class MetaTieredImageNet(TieredImageNet): method __init__ (line 76) | def __init__(self, root_path, split='train', image_size=84, method __len__ (line 94) | def __len__(self): method __getitem__ (line 97) | def __getitem__(self, index): FILE: datasets/transforms.py function get_transform (line 7) | def get_transform(name, image_size, norm_params): FILE: models/classifiers/classifiers.py function register (line 9) | def register(name): function make (line 16) | def make(name, **kwargs): function load (line 25) | def load(ckpt): FILE: models/classifiers/logistic.py class LogisticClassifier (line 12) | class LogisticClassifier(Module): method __init__ (line 13) | def __init__(self, in_dim, n_way, temp=1., learn_temp=False): method reset_parameters (line 24) | def reset_parameters(self): method forward (line 28) | def forward(self, x_shot, params=None): FILE: models/encoders/convnet4.py class ConvBlock (line 12) | class ConvBlock(Module): method __init__ (line 13) | def __init__(self, in_channels, out_channels, bn_args): method forward (line 23) | def forward(self, x, params=None, episode=None): class ConvNet4 (line 30) | class ConvNet4(Module): method __init__ (line 31) | def __init__(self, hid_dim, out_dim, bn_args): method get_out_dim (line 54) | def get_out_dim(self, scale=25): method forward (line 57) | def forward(self, x, params=None, episode=None): function convnet4 (line 64) | def convnet4(bn_args=dict()): function wide_convnet4 (line 69) | def wide_convnet4(bn_args=dict()): FILE: models/encoders/encoders.py function register (line 6) | def register(name): function make (line 13) | def make(name, **kwargs): function load (line 22) | def load(ckpt): FILE: models/encoders/resnet12.py function conv3x3 (line 12) | def conv3x3(in_channels, out_channels): function conv1x1 (line 16) | def conv1x1(in_channels, out_channels): class Block (line 20) | class Block(Module): method __init__ (line 21) | def __init__(self, in_planes, planes, bn_args): method forward (line 41) | def forward(self, x, params=None, episode=None): class ResNet12 (line 58) | class ResNet12(Module): method __init__ (line 59) | def __init__(self, channels, bn_args): method get_out_dim (line 90) | def get_out_dim(self): method forward (line 93) | def forward(self, x, params=None, episode=None): function resnet12 (line 103) | def resnet12(bn_args=dict()): function wide_resnet12 (line 108) | def wide_resnet12(bn_args=dict()): FILE: models/encoders/resnet18.py function conv3x3 (line 12) | def conv3x3(in_channels, out_channels, stride=1): function conv1x1 (line 16) | def conv1x1(in_channels, out_channels, stride=1): class Block (line 20) | class Block(Module): method __init__ (line 21) | def __init__(self, in_planes, planes, stride, bn_args): method forward (line 40) | def forward(self, x, params=None, episode=None): class ResNet18 (line 54) | class ResNet18(Module): method __init__ (line 55) | def __init__(self, channels, bn_args): method get_out_dim (line 91) | def get_out_dim(self, scale=1): method forward (line 94) | def forward(self, x, params=None, episode=None): function resnet18 (line 106) | def resnet18(bn_args=dict()): function wide_resnet18 (line 111) | def wide_resnet18(bn_args=dict()): FILE: models/maml.py function make (line 13) | def make(enc_name, enc_args, clf_name, clf_args): function load (line 33) | def load(ckpt, load_clf=False, clf_name=None, clf_args=None): class MAML (line 61) | class MAML(Module): method __init__ (line 62) | def __init__(self, encoder, classifier): method reset_classifier (line 67) | def reset_classifier(self): method _inner_forward (line 70) | def _inner_forward(self, x, params, episode): method _inner_iter (line 76) | def _inner_iter(self, x, y, params, mom_buffer, episode, inner_args, d... method _adapt (line 126) | def _adapt(self, x, y, params, episode, inner_args, meta_train): method forward (line 190) | def forward(self, x_shot, x_query, y_shot, inner_args, meta_train): FILE: models/modules.py function get_child_dict (line 13) | def get_child_dict(params, key=None): class Module (line 38) | class Module(nn.Module): method __init__ (line 39) | def __init__(self): method go_efficient (line 44) | def go_efficient(self, mode=True): method is_first_pass (line 51) | def is_first_pass(self, mode=True): class Conv2d (line 60) | class Conv2d(nn.Conv2d, Module): method __init__ (line 61) | def __init__(self, in_channels, out_channels, kernel_size, method forward (line 66) | def forward(self, x, params=None, episode=None): class Linear (line 79) | class Linear(nn.Linear, Module): method __init__ (line 80) | def __init__(self, in_features, out_features, bias=True): method forward (line 83) | def forward(self, x, params=None, episode=None): class BatchNorm2d (line 96) | class BatchNorm2d(nn.BatchNorm2d, Module): method __init__ (line 97) | def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=True, method is_episodic (line 132) | def is_episodic(self): method _batch_norm (line 135) | def _batch_norm(self, x, mean, var, weight=None, bias=None): method reset_episodic_running_stats (line 145) | def reset_episodic_running_stats(self, episode): method forward (line 151) | def forward(self, x, params=None, episode=None): class Sequential (line 207) | class Sequential(nn.Sequential, Module): method __init__ (line 208) | def __init__(self, *args): method forward (line 211) | def forward(self, x, params=None, episode=None): FILE: test.py function main (line 16) | def main(config): FILE: train.py function main (line 21) | def main(config): FILE: utils/__init__.py function set_log_path (line 11) | def set_log_path(path): function log (line 16) | def log(obj, filename='log.txt'): class AverageMeter (line 23) | class AverageMeter(object): method __init__ (line 24) | def __init__(self): method reset (line 27) | def reset(self): method update (line 33) | def update(self, val, n=1): method item (line 39) | def item(self): class Timer (line 43) | class Timer(object): method __init__ (line 44) | def __init__(self): method start (line 47) | def start(self): method end (line 50) | def end(self): function set_gpu (line 54) | def set_gpu(gpu): function ensure_path (line 59) | def ensure_path(path, remove=True): function time_str (line 70) | def time_str(t): function compute_acc (line 78) | def compute_acc(pred, label, reduction='mean'): function compute_n_params (line 86) | def compute_n_params(model, return_str=True): function mean_confidence_interval (line 99) | def mean_confidence_interval(data, confidence=0.95): function config_inner_args (line 106) | def config_inner_args(inner_args): FILE: utils/optimizers.py function make (line 5) | def make(name, params, lr, weight_decay=0., function load (line 43) | def load(ckpt, params):