Rate This Document
Findability
Accuracy
Completeness
Readability

Interface Description

The interfaces of the PyTorch image operator are the same as those of PyTorch. Table 1 lists optimized interfaces.

Table 1 Optimized interfaces

Interface

Description

normalize

Normalizes a tensor image using the mean and standard deviation.

permute

Changes the sequence of each dimension of a tensor so that the memory layout is continuous.

resize

Resizes an image. The bilinear and bicubic interpolation modes are optimized.

crop

Crops a rectangular region from an image or video frame.

write_video

Encodes a video frame array in tensor format and writes it to a video file.