Hi all.
How can I access self.znoise in the class below, including when the model is wrapped in DataParallel?
I have tried looking inside of dir(model.module) but haven’t been able to find any container that might have that attribute!
from sacred import Ingredient
model_ingredient = Ingredient('model')
class Model(nn.Module):
    @model_ingredient.capture
    def __init__(self, size):
        super(Model, self).__init__()
        self.znoise = torch.FloatTensor(1, size, 1)
        if torch.cuda.is_available():
            self.znoise = self.znoise.cuda()
        self.encoder = nn.ModuleList([neuralnet])