INNER CODE UNIT · Python
set_data_format
tensorlayer/HyperPose · hyperpose/Config/__init__.py:252
def set_data_format(data_format):
'''set model dataformat
set the channel order of current model:
| "channels_first" dataformat is faster in deployment
| "channels_last" dataformat is more common
the integrated pipeline will automaticly adapt to the chosen data format
Parameters
----------
arg1 : string
available input:
| 'channels_first': data_shape N*C*H*W
| 'channels_last': data_shape N*H*W*C
Returns
-------