Closed geniuspatrick closed 1 year ago
Thank you for your contribution to the MindCV repo. Before submitting this PR, please make sure:
If using top_k policy, the type checking of metric should be isinstance(metric, Tensor) instead of type(metric) is not np.ndarray.
metric
isinstance(metric, Tensor)
type(metric) is not np.ndarray
In coat.yaml, drop_overflow_update: True should be added when using loss_scale_type: dynamic.
coat.yaml
drop_overflow_update: True
loss_scale_type: dynamic
(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)
Thank you for your contribution to the MindCV repo. Before submitting this PR, please make sure:
Motivation
If using top_k policy, the type checking of
metric
should beisinstance(metric, Tensor)
instead oftype(metric) is not np.ndarray
.In
coat.yaml
,drop_overflow_update: True
should be added when usingloss_scale_type: dynamic
.Test Plan
(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)
Related Issues and PRs
684
662
600