Skip to content

Commit ec09228

Browse files
committed
Add scatter into black list for dygraph.
1 parent 0311ebb commit ec09228

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/paddle/fluid/dygraph/amp/auto_cast.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
}
7272

7373
PURE_FP16_WHITE_LIST = {' '}
74-
PURE_FP16_BLACK_LIST = {'lookup_table', 'lookup_table_v2'}
74+
PURE_FP16_BLACK_LIST = {
75+
'lookup_table', 'lookup_table_v2', 'scatter', 'scatter_grad'
76+
}
7577

7678

7779
#NOTE(zhiqiu): similar as paddle.fluid.contrib.mixed_precision.fp16_lists.AutoMixedPrecisionLists._update_list

0 commit comments

Comments
 (0)