

#Tensorflow permute mnist update
Update the Mask_RCNN model from NHWC to NCHW:ġ) Set default image data format : ```python import keras.backend as K K.set_image_data_format('channels_first') ``` 2) change all BN layers from NHWC to NCHW: ```python In function: indentity_block, conv_block, fpn_classifier_graph, build_fpn_mask_graph uff (provided with TensorRT binary release package).graphsurgeon (provided with TensorRT binary release package).

**Usage for MaskRCNN conversion scripts** Dependency: uff with nodes whose input tensor has more than one index dimension (this will be the next TensorRT release).

The UFF Parser cannot handle the inputs with more than one index dimension for convolution, deconvolution and softmax correctly.the CPU version tensorflow's NCHW convolution would introduce the nodes graph like: ``` transpose_NCHW2NHWC -> Convolution_NHWC -> transpose_NHWC2NCHW ``` Therefore we recommend installing tensorflow-gpu.
#Tensorflow permute mnist code
So in most cases, we should reverse the input list when connect the broken graph using (other_node.name)(The example code is in config.py): Generally, the inputs should be the feature map input and inputs of node should be the kernel weights.
