Skip to content

Commit

Permalink
apply PaddlePaddle#70326 and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create committed Dec 19, 2024
1 parent 3cf517e commit a3b1717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@


cache_grad_op_shape_black_list = {"fused_attention"}
manual_grad_op_sym_infer_list = {"fuesd_attention"}
manual_grad_op_sym_infer_list = {"fused_attention"}


class CacheGradOpSymbolShapeCodeGen:
Expand Down
2 changes: 1 addition & 1 deletion paddle/pir/src/dialect/shape/utils/shape_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void InferSymbolicShapeContext::SetSymbolForValueByStaticShape(Value val) {
const auto& GetStaticShapeForDenseTensorType =
[&](DenseTensorType type_info) -> symbol::TensorShapeOrDataDimExprs {
std::vector<symbol::DimExpr> static_shape;
for (int i = 0; i < type_info.dims().size(); ++i) {
for (int i = 0; i < common::vectorize(type_info.dims()).size(); ++i) {
int dim = type_info.dims()[i];
if (dim > 0) {
static_shape.emplace_back(dim);
Expand Down

0 comments on commit a3b1717

Please sign in to comment.