def __init__(self, epsilon, num_streams, num_quantiles, name=None, max_elements=None):
    self._eps = epsilon
    self._num_streams = num_streams
    self._num_quantiles = num_quantiles
    super(QuantileAccumulator, self).__init__()
    with ops.name_scope(name, 'QuantileAccumulator') as name:
        self._name = name
        self._resource_handle = self._create_resource()
        self._init_op = self._initialize()
        is_initialized_op = self.is_initialized()
    resources.register_resource(self.resource_handle, self._init_op, is_initialized_op)
    self._saveable = QuantileAccumulatorSaveable(self.resource_handle, self._init_op, self._num_streams, self.resource_handle.name)
    ops.add_to_collection(ops.GraphKeys.SAVEABLE_OBJECTS, self._saveable)
def __init__(self, epsilon, num_streams, num_quantiles, name=None, max_elements=None):
    self._eps = epsilon
    self._num_streams = num_streams
    self._num_quantiles = num_quantiles
    super(QuantileAccumulator, self).__init__()
    with ops.name_scope(name, 'QuantileAccumulator') as name:
        self._name = name
        self._resource_handle = self._create_resource()
        self._init_op = self._initialize()
        is_initialized_op = self.is_initialized()
    resources.register_resource(self.resource_handle, self._init_op, is_initialized_op)
    self._saveable = QuantileAccumulatorSaveable(self.resource_handle, self._init_op, self._num_streams, self.resource_handle.name)
    ops.add_to_collection(ops.GraphKeys.SAVEABLE_OBJECTS, self._saveable)