code: def get_flat_size(self):
          
          return sum(
              np.prod(v.get_shape().as_list()) for v in self.variables.values())
docs: Returns the total length of all of the flattened variables.
  
          Returns:
              The length of all flattened variables concatenated.