-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Partition into dedicated dataclass #3563
base: develop
Are you sure you want to change the base?
Conversation
return len(self.nodesets_tpu) > 0 | ||
|
||
@property | ||
def any_dynamic(self) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I'd probably name it something like has_dynamic
@@ -180,7 +177,7 @@ def nodeset_dyn_lines(nodeset): | |||
) | |||
|
|||
|
|||
def partitionlines(partition, lkp: util.Lookup) -> str: | |||
def partitionlines(partition: Partition, lkp: util.Lookup) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Could we change this to partition_lines
?
@@ -74,11 +74,11 @@ def test_group_nodes_bulk(mock_create_placements, mock_tpu): | |||
"t": TstNodeset(nodeset_name="t"), | |||
}, | |||
partitions={ | |||
"p1": TstPartition( | |||
"p1": dict( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use the Partition class?
partition_feature
.