Skip to content

Commit 590b4db

Browse files
authored
fix bugs (#42495)
1 parent 71d3b06 commit 590b4db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paddle/phi/infermeta/unary.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ void EinsumInferMeta(const std::vector<const MetaTensor*>& inputs,
436436
<< paddle::string::join_strings(output_dims, ",");
437437
VLOG(3) << "Label Type is : " << label_to_string(all_labels, labeltype);
438438
VLOG(3) << "Label Shape is : " << label_to_string(all_labels, labelshape);
439+
out->set_dims(make_ddim(output_dims));
440+
out->set_dtype(inputs[0]->dtype());
439441
}
440442

441443
void ExpandInferMeta(const MetaTensor& x,

0 commit comments

Comments
 (0)