twf#

Classes

class models.twf.TwF(backbone, loss, args, transform)[source]#

Bases: ContinualModel

COMPATIBILITY: List[str] = ['class-il', 'task-il']#
NAME: str = 'twf'#
begin_task(dataset)[source]#
end_task(dataset)[source]#
get_custom_double_transform(transform)[source]#
static get_parser()[source]#
Return type:

ArgumentParser

observe(inputs, labels, not_aug_inputs, epoch=None)[source]#
partial_distill_loss(net_partial_features, pret_partial_features, targets, teacher_forcing=None, extern_attention_maps=None)[source]#

Functions

models.twf.batch_iterate(size, batch_size)[source]#