yr.ResourceGroup.bundle_count

yr.ResourceGroup.bundle_count#

ResourceGroup.bundle_count: int

返回当前资源组中的 bundle 数量。

返回:

当前资源组下的所有 bundle。 数据类型为 int。

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