@@ -45,7 +45,7 @@ def _recover_outputs_attr(program):
45
45
unique_name .generate_with_ignorable_key (
46
46
"." .join (["reserve_space" , 'tmp' ])),
47
47
dtype = block .var (op .input ("X" )[0 ]).dtype ,
48
- type = paddle .framework .core .VarDesc .VarType .LOD_TENSOR ,
48
+ type = paddle .framework .core .VarDesc .VarType .DENSE_TENSOR ,
49
49
persistable = False ,
50
50
stop_gradient = True )
51
51
op .desc .set_output ("ReserveSpace" , [reserve_space .name ])
@@ -56,7 +56,7 @@ def _recover_outputs_attr(program):
56
56
unique_name .generate_with_ignorable_key (
57
57
"." .join (["xshape" , 'tmp' ])),
58
58
dtype = block .var (op .input ("X" )[0 ]).dtype ,
59
- type = paddle .framework .core .VarDesc .VarType .LOD_TENSOR ,
59
+ type = paddle .framework .core .VarDesc .VarType .DENSE_TENSOR ,
60
60
shape = (0 , ) + block .var (op .input ("X" )[0 ]).shape ,
61
61
persistable = False ,
62
62
stop_gradient = True )
@@ -67,7 +67,7 @@ def _recover_outputs_attr(program):
67
67
name = paddle .utils .unique_name .
68
68
generate_with_ignorable_key ("." .join (["mask" , 'tmp' ])),
69
69
dtype = block .var (op .input ("X" )[0 ]).dtype ,
70
- type = paddle .framework .core .VarDesc .VarType .LOD_TENSOR ,
70
+ type = paddle .framework .core .VarDesc .VarType .DENSE_TENSOR ,
71
71
shape = block .var (op .input ("X" )[0 ]).shape ,
72
72
persistable = False ,
73
73
stop_gradient = True )
0 commit comments