MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / tensor_normalize

Function tensor_normalize

slowfast/datasets/utils.py:276–295  ·  view source on GitHub ↗

Normalize a given tensor by subtracting the mean and dividing the std. Args: tensor (tensor): tensor to normalize. mean (tensor or list): mean value to subtract. std (tensor or list): std to divide.

(tensor, mean, std, func=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

process_cv2_inputsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected