Closed yiwen-song closed 3 years ago
Summary: Background: https://fb.workplace.com/groups/349226332644221/permalink/776593166574200/
According to the suggestion, we make the following changes in the classy vision codebase (only for the type checking part):
type(x) == list or tuple
isinstance(x, Typing.Sequence)
type(x) == dict
isinstance(x, Typing.Mapping)
Differential Revision: D27170968
Summary: Background: https://fb.workplace.com/groups/349226332644221/permalink/776593166574200/
According to the suggestion, we make the following changes in the classy vision codebase (only for the type checking part):
type(x) == list or tuple
->isinstance(x, Typing.Sequence)
type(x) == dict
->isinstance(x, Typing.Mapping)
Differential Revision: D27170968