class_docstr: Collective broadcast communication.
class_docstr_tok: ["Collective","broadcast","communication","."]
code: def forward(self, inputs):
      x_dtype = inputs[0].dtype
  
      if self.comm.rank == self.root:
          (x,) = inputs
  
          # convert to float32 for communication
          if numpy.float16 == x_dtype:
              x = x.astype(numpy.float32)
      else:
          x = None
  
      x = (self.comm.bcast(x, self.root),)
  
      # convert back
      if numpy.float16 == x_dtype:
          x = tuple([item.astype(x_dtype) for item in x])
  
      return x
  
imports: import chainer
  from chainer import backend
  import numpy
label_desc: Use image node_id 3 for calling the Bcast obj's underlying member method code with example usage: obj.forward(inputs) and returns: x