Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
danielholanda committed Mar 1, 2024
1 parent 34ea505 commit 40e0efd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/turnkeyml/analyze/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def add_unique_invocation(
parent_hash: Union[str, None] = None,
executed: int = 0,
):
model_class = (
type(self.model) if self.model_type == build.ModelType.PYTORCH else None
)
self.unique_invocations[invocation_hash] = UniqueInvocationInfo(
name=self.name,
script_name=self.script_name,
Expand All @@ -344,7 +347,7 @@ def add_unique_invocation(
depth=self.depth,
build_model=self.build_model,
model_type=self.model_type,
model_class=type(self.model),
model_class=model_class,
invocation_hash=invocation_hash,
hash=self.hash,
is_target=is_target,
Expand Down

0 comments on commit 40e0efd

Please sign in to comment.