MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / size

Function size

tensorflow/contrib/mpi_collectives/mpi_ops.py:61–70  ·  view source on GitHub ↗

An op which returns the number of MPI processes. This is equivalent to running `MPI_Comm_size(MPI_COMM_WORLD, ...)` to get the size of the global communicator. Returns: An integer scalar containing the number of MPI processes.

(name=None)

Source from the content-addressed store, hash-verified

59
60
61def size(name=None):
62 """An op which returns the number of MPI processes.
63
64 This is equivalent to running `MPI_Comm_size(MPI_COMM_WORLD, ...)` to get the
65 size of the global communicator.
66
67 Returns:
68 An integer scalar containing the number of MPI processes.
69 """
70 return MPI_LIB.mpi_size(name=name)
71
72
73ops.NotDifferentiable('MPISize')

Callers 15

allreduceFunction · 0.90
BuildReplicateOpFunction · 0.50
StartsWithMethod · 0.50
operator==Method · 0.50
ToStringMethod · 0.50
LinearizeMethod · 0.50
DebugStringMethod · 0.50
endMethod · 0.50
endMethod · 0.50
endMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected