yr.ResourceGroup#
- class yr.ResourceGroup(name:, request_id:, bundles: ~typing.List[~typing.Dict] | None = None)[source]#
Bases:
objectThe handle returned after creating a ResourceGroup.
Examples
>>> rg = yr.create_resource_group([{"NPU":1},{"CPU":2000,"Memory":2000}], "rgname")
Initialize ResourceGroup.
Attributes
Returns the number of bundles in the current resource group.
Returns all bundles under the current resource group.
Returns the name of the current resource group.
Methods