Shortcuts

Transpose

class mmcls.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: 1.x
Versions
master
latest
1.x
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.