Normalize 1-D Tensors


I’ve recently started a project analyzing 1-D ECG Data. However, I have to normalize the produced 1-D tensors for pre-processing. Since it doesn’t appear that torchvision.transforms supports 1-D tensors, is there a way to manually normalize 1-D tensors?

Thank you!

You could look at instanceNorm1D and layerNorm operations both provided in the torch.nn modules

Thank you! I will look into that!