MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / permutation

Method permutation

tools/Polygraphy/polygraphy/util/format.py:102–103  ·  view source on GitHub ↗
(old_format, new_format)

Source from the content-addressed store, hash-verified

100 # Get the permutation required to transpose old_format to new_format
101 @staticmethod
102 def permutation(old_format, new_format):
103 return FormatManager.DATA_PERMUTATIONS[(old_format, new_format)]
104
105 @staticmethod
106 def convert(shape, new_format):

Callers 1

convertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected