slim.flatten(inputs,outputs_collections=None,scope=None) (注:import tensorflow.contrib.slim as slim) 将输入扁平化但保留batch_size,假设第一维是batch. Args: inputs: a tensor of size [batch_size, …]. outputs_collections: collection to add the outputs. scope: Optional s…