parameters: (x)
return_statement: return x[~np.all(x == 0, axis=1)]
docstring: It's common to have tensors larger than the available data and
      pad with zeros. This function removes rows that are all zeros.
  
      x: [rows, columns].
docstring_summary: It's common to have tensors larger than the available data and
      pad with zeros. This function removes rows that are all zeros.
docstring_tokens: It s common to have tensors larger than the available data and pad with zeros . This function removes rows that are all zeros .
function: def trim_zeros(x):
      """It's common to have tensors larger than the available data and
      pad with zeros. This function removes rows that are all zeros.
  
      x: [rows, columns].
      """
      assert len(x.shape) == 2
      return x[~np.all(x == 0, axis=1)]
function_tokens: def trim_zeros ( x ) : assert len ( x . shape ) == 2 return x [ ~ np . all ( x == 0 , axis = 1 ) ]