in code/pretrained_model_with_debugger_hook.py [0:0]
def __init__(self, model: Any, hook: Union[smd.Hook, None]):
'''Simple container to associate a 'model' with a SageMaker debug hook'''
self.model = model
self.hook = hook