(self, inputs)
return tuple(sub_inputs)
Divides Parallel's inputs for use by the sublayers.

    Args:
      inputs: Tuple of ndarrays or ShapeDtype instances.

    Returns:
      A tuple that partitions this layer's inputs among its sublayers.
      Sublayers that take one argument get that argument directly. All other
      sublayers get a tuple of items.
Divides Parallel's inputs for use by the sublayers.
Divides Parallel s inputs for use by the sublayers .
def _allot_to_sublayers(self, inputs):
    """Divides Parallel's inputs for use by the sublayers.

    Args:
      inputs: Tuple of ndarrays or ShapeDtype instances.

    Returns:
      A tuple that partitions this layer's inputs among its sublayers.
      Sublayers that take one argument get that argument directly. All other
      sublayers get a tuple of items.
    """
    start, end = 0, 0
    sub_inputs = []
    for layer in self.sublayers:
      n_in = layer.n_in
      end = start + n_in
      if n_in == 1:
        sub_inputs.append(inputs[start])
      else:
        sub_inputs.append(inputs[start:end])
      start = end
    return tuple(sub_inputs)
def _allot_to_sublayers ( self , inputs ) : start , end = 0 , 0 sub_inputs = [ ] for layer in self . sublayers : n_in = layer . n_in end = start + n_in if n_in == 1 : sub_inputs . append ( inputs [ start ] ) else : sub_inputs . append ( inputs [ start : end ] ) start = end return tuple ( sub_inputs )