Skip to content

Commit

Permalink
Make bias optional for MatMul nodes (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarques committed Jun 23, 2023
1 parent a6fdb7f commit 0b64b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparseml/yolov8/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def __init__(self, model="yolov8n.yaml", type="v8") -> None:

if model_str.endswith(".pt"):
if os.path.exists(model_str):
ckpt = torch.load(model_str)
ckpt = torch.load(model_str, map_location="cpu")
self.is_sparseml_checkpoint = (
"source" in ckpt and ckpt["source"] == "sparseml"
)
Expand Down

0 comments on commit 0b64b31

Please sign in to comment.