309 images, raw_images = load_images(args.image_paths, model.hparams.input_size)
310 images = torch.stack(images).to(device)
311
312 """313 Common usage:
314 1. Wrap your model with visualization classes defined in grad_cam.py
315 2. Run forward() with images
The string statement has not been assigned to anything. This is pointless and should be removed if not necessary. In case this is supposed to describe what's happening in the code, it is recommended to use comments or docstrings instead.
'Define a function to add 2 numbers here.'
def add(a, b):
return a + b
Use Comments:
# Define a function to add 2 numbers here.
def add(a, b):
return a + b
or, use docstrings:
def add(a, b):
'''Function to add 2 numbers here.'''
return a + b