sequence_reshape
注意:该OP的输入只能是LoDTensor,如果您需要处理的输入是Tensor类型,请使用reshape函数(fluid.layers. reshape )。
该OP仅支持LoDTensor ,在指定 参数下,通过序列原始长度、和原始shape计算出新的shape,以输出包含新维度(new_dim)下的LoDTensor。目前仅支持1-level LoDTensor,请确保(原长度*原维数)可以除以新的维数,且每个序列没有余数。
input (Variable) - 维度为
返回:根据新维度重新reshape后的LoDTensor,数据类型和输入一致。
代码示例: