def convert_weights_to_numpy(weights_dict):
        """Convert weights to numpy"""
        return dict([(k.replace("arg:", "").replace("aux:", ""), v.asnumpy())
                     for k, v in weights_dict.items()])
def convert_weights_to_numpy ( weights_dict ) : return dict ( [ ( k . replace ( "arg:" , "" ) . replace ( "aux:" , "" ) , v . asnumpy ( ) ) for k , v in weights_dict . items ( ) ] )
Convert weights to numpy