class documentation
class SaveLayerTensor(object): (source)
Constructor: SaveLayerTensor(model, layer_name)
Callback that saves the input/output tensor of the specified layer of a Torch model during each forward() call.
Parameters | |
model | the Torch model, a torch:torch.nn.Module |
layer | the name of the layer whose output to save. Prepend "<" to save the input tensor instead |
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Property | tensor |
The tensor saved from the last forward() call. |
Method | _setup |
Undocumented |
Instance Variable | _save |
Undocumented |
Instance Variable | _tensor |
Undocumented |