Shortcuts

Transpose

class mmpretrain.datasets.transforms.Transpose(keys, order)[源代码]

转置 NumPy 数组

Required Keys:

  • *keys

Modified Keys:

  • *keys

参数:
  • keys (List[str]) – The fields to convert to tensor.

  • order (List[int]) – The output dimensions order.

transform(results)[源代码]

Method to transpose array.

Read the Docs v: latest
Versions
latest
stable
mmcls-1.x
mmcls-0.x
dev
Downloads
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.