File tree 1 file changed +8
-2
lines changed
paddle/pir/src/dialect/shape/transforms
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,8 @@ void InferSymExprForOp(Operation* op,
344
344
static const std::set<std::string> skip_cache_check_op_set = {
345
345
// new symbol
346
346
" pd_op.data" ,
347
+ " pd_op.arange" ,
348
+ " pd_op.masked_select" ,
347
349
// unneeded to cache
348
350
" cinn_op.generate_shape" ,
349
351
};
@@ -357,7 +359,8 @@ void CacheForwardOpSymbolicShape(
357
359
[&](const InferSymbolicShapeCacheValue& infer_result,
358
360
const InferSymbolicShapeCacheValue& cache_result) {
359
361
if (infer_result.size () != cache_result.size ()) {
360
- LOG (WARNING) << " cached shape is not consistent with real shape" ;
362
+ LOG (WARNING) << " cached shape is not consistent with real shape for "
363
+ << op->name () << " [id:" << op->id () << " ]" ;
361
364
} else {
362
365
for (uint32_t i = 0 ; i < cache_result.size (); ++i) {
363
366
if (infer_result[i] != cache_result[i]) {
@@ -368,7 +371,10 @@ void CacheForwardOpSymbolicShape(
368
371
skip_cache_check_op_set.end ()) {
369
372
continue ;
370
373
}
371
- LOG (WARNING) << " cached shape is not consistent with real shape" ;
374
+ LOG (WARNING)
375
+ << " cached shape is not consistent with real shape for "
376
+ << op->name () << " [id:" << op->id ()
377
+ << " ] with result index: " << i;
372
378
VLOG (3 ) << " InferSymbolicShapeCacheKey is: "
373
379
<< op_infer_cache_key;
374
380
VLOG (3 ) << " cached shape is: " << cache_result[i];
You can’t perform that action at this time.
0 commit comments