Skip to content

Commit

Permalink
Add Yolov8
Browse files Browse the repository at this point in the history
  • Loading branch information
anzr299 committed Jul 12, 2024
1 parent 9dc4239 commit 42deabb
Show file tree
Hide file tree
Showing 4 changed files with 1,596 additions and 58 deletions.
6 changes: 3 additions & 3 deletions nncf/common/utils/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def is_torch_model(model: TModel) -> bool:
:param model: A target model.
:return: True if the model is an instance of torch.nn.Module and not torch.fx.GraphModule, otherwise False.
"""
import torch #type: ignore
import torch.fx #type: ignore
import torch # type: ignore
import torch.fx # type: ignore

return not isinstance(model, torch.fx.GraphModule) and isinstance(model, torch.nn.Module)

Expand All @@ -71,7 +71,7 @@ def is_torch_fx_model(model: TModel) -> bool:
:param model: A target model.
:return: True if the model is an instance of torch.fx.GraphModule, otherwise False.
"""
import torch.fx #type: ignore
import torch.fx

return isinstance(model, torch.fx.GraphModule)

Expand Down
Loading

0 comments on commit 42deabb

Please sign in to comment.