def __init__(self, epsilon, num_streams, num_quantiles, name=None, max_elements=None): with ops.name_scope(name, 'QuantileAccumulator') as name: self._eps = epsilon self._num_streams = num_streams self._num_quantiles = num_quantiles self._resource_handle = quantile_resource_handle_op( container='', shared_name=name, name=name) self._create_op = create_quantile_stream_resource( self._resource_handle, epsilon, num_streams) is_initialized_op = is_quantile_resource_initialized( self._resource_handle) resources.register_resource(self._resource_handle, self._create_op, is_initialized_op) self._make_saveable(name)
def is_initialized(self): return is_quantile_resource_initialized(self.resource_handle)
def is_initialized(self): return is_quantile_resource_initialized(self.resource_handle)