yr.ResourceGroup.bundle_count

yr.ResourceGroup.bundle_count#

property ResourceGroup.bundle_count: int#

Returns the number of bundles in the current resource group.

Returns:

Number of bundles in the current resource group. Data type is int.

Examples

>>> import yr
>>> yr.init()
>>> rg = yr.create_resource_group([{"NPU":1},{"CPU":2000,"Memory":2000}], "rgname")
>>> count = rg.bundle_count
>>> print(count)