# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License"# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.fromcollectionsimportOrderedDictas_dictdefault_op_mapping_field_values=_dict()default_op_mapping_field_values['FLUID_OP']=''default_op_mapping_field_values['FLUID_INPUT_ARGS']=Nonedefault_op_mapping_field_values['FLUID_OUTPUT_ARGS']=Nonedefault_op_mapping_field_values['ATTR_MAPPING']=dict()default_op_mapping_field_values['DEFAULTS']=dict()default_op_mapping_field_values['INPUT_PERM']=Nonedefault_op_mapping_field_values['OUTPUT_PERM']=Nonedefault_op_mapping_field_values['FILL_NAME_FIELD']=Truedefault_op_mapping={'Gather':['gather',['X'],['Out'],dict(axis='')],'Shape':['shape',['X'],['Out']],'Mul':['elementwise_mul',['X','Y'],['Out'],dict(),dict(axis=-1)],}default_ioa_constraint={'Gather':[(lambdai,o,a:a.get('axis',0)==0,'only axis = 0 is supported')],}