Shortcuts

BaseDistBackend

class mmeval.core.dist_backends.BaseDistBackend[source]

The base backend of distributed communication used by mmeval Metric.

abstract all_gather_object(obj: Any)List[Any][source]

All gather the given object from the current process group and returns a list consisting gathered object of each process..

Parameters

obj (any) – Any pickle-able python object for all gather.

Returns

A list of the all gathered object.

Return type

list

abstract broadcast_object(obj: Any, src: int)Any[source]

Broadcast the given object from source process to the current process group.

Parameters
  • obj (any) – Any pickle-able python object for broadcast.

  • src (int) – The source rank index.

Returns

The broadcast object.

Return type

any

abstract property is_initialized: bool

Returns True if the distributed environment has been initialized.

Returns

Returns True if the distributed environment has been initialized, otherwise returns False.

Return type

bool

abstract property rank: int

Returns the rank index of the current process group.

Returns

The rank index of the current process group.

Return type

int

abstract property world_size: int

Returns the world size of the current process group.

The world size is the size of the communication process group.

Returns

The size of the current process group.

Return type

int

Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.