Add sequence_expand Operator based LoDTensor
Created by: wanghaoshuang
sequence_expand Op
Expand a LoDTensor by a reference LoDTensor.
example
Ginve input(X) as input to be expanded and input(Y) as reference input. Both input(X) and input(Y) are LoDTensor.
#1 (closed)
Input(X) :
2
a b
Input(Y):
4
Out:
illegal?
#2 (closed)
Input(X) :
2
a b
Input(Y):
2
2 2
Out:
2
2 2
a a b b
#3 (closed)
Input(X) :
2
a b
Input(Y):
2
2 4
Out:
2
2 4
a a b b b b
#4 (closed)
Input(X) :
2
1 2
a b c
Input(Y):
2
2 4
Out:
2
2 4
a a b c b c
illegal?
#5 (closed)
Input(X) :
2
1 2
a b c
Input(Y):
4
2 4 4 4
Out:
4
2 4 4 4
a a b c b c a a a a b c b c
illegal?
#6 (closed)
Input(X) :
2
a b
Input(Y):
3
Out:
illegal