def __init__(self, model, tag=None, global_step_transform=None):
    super(WeightsHistHandler, self).__init__(model)
    self.tag = tag
    if (global_step_transform is None):

        def global_step_transform(engine, event_name):
            return engine.state.get_event_attrib_value(event_name)
    self.global_step_transform = global_step_transform
def __init__(self, model, tag=None, global_step_transform=None):
    super(WeightsHistHandler, self).__init__(model)
    self.tag = tag
    if (global_step_transform is None):

        def global_step_transform(engine, event_name):
            return engine.state.get_event_attrib_value(event_name)
    self.global_step_transform = global_step_transform