parameters: (weights)
return_statement: return np.moveaxis(weights, [0, 1, 2, 3], [1, 2, 0, 3]).flatten()
docstring: Change dimension order of 2d filter weights to the one used in fdeep
docstring_summary: Change dimension order of 2d filter weights to the one used in fdeep
docstring_tokens: Change dimension order of 2d filter weights to the one used in fdeep
function: def prepare_filter_weights_slice_conv_2d(weights):
      """Change dimension order of 2d filter weights to the one used in fdeep"""
      assert len(weights.shape) == 4
      return np.moveaxis(weights, [0, 1, 2, 3], [1, 2, 0, 3]).flatten()
function_tokens: def prepare_filter_weights_slice_conv_2d ( weights ) : assert len ( weights . shape ) == 4 return np . moveaxis ( weights , [ 0 , 1 , 2 , 3 ] , [ 1 , 2 , 0 , 3 ] ) . flatten ( )