Hi ,everyone. After I initialized the following class, no attribute can be found in the initialized member, let alone the subsequent training process. However, if I erase the nn.Module, not setting the InceptionTime as a subclass of nn.Module, the initialized member contain all the attributes as designed. I am curious about the phenomenon. Excuse me for my somewhat naive question.
class InceptionTime(nn.Module):
def __init__(self, input_channel, num_class,
filters,
depth,
models):
# Build and save the models.
self.the_models = [
InceptionModel(
input_size= input_channel,
num_classes= num_class,
filters=filters,
depth=depth,
) for _ in range(models)
]
self.length_before_classification = 4 * filters