示例#1
0
    def DeterminePeakMemoryUsage(self, item):
        """Returns a snapshot of the peak memory usage.

    Args:
      item: The item for which to measure the costs.
    Returns: A hashtable indexed by device name.
    """
        return tf_cluster.TF_DeterminePeakMemoryUsage(item.tf_item,
                                                      self._tf_cluster)
示例#2
0
    def DeterminePeakMemoryUsage(self, item):
        """Returns a snapshot of the peak memory usage.

    Args:
      item: The item for which to measure the costs.
    Returns: A hashtable indexed by device name.
    """
        with errors.raise_exception_on_not_ok_status() as status:
            return tf_cluster.TF_DeterminePeakMemoryUsage(
                item.tf_item, self._tf_cluster, status)