(shape)
return axis
Chooses an axis to shard on - a simple heuristic to be revisited.
Chooses an axis to shard on - a simple heuristic to be revisited.
Chooses an axis to shard on - a simple heuristic to be revisited .
def _axis_to_shard_heuristic(shape):
  """Chooses an axis to shard on - a simple heuristic to be revisited."""
  axis = 0 if len(shape) < 3 else -1
  return axis
def _axis_to_shard_heuristic ( shape ) : axis = 0 if len ( shape ) < 3 else - 1 return axis