def __init__(self, name, stamp_token=0, is_local=False, serialized_proto=''):
    self._stamp_token = stamp_token
    self._serialized_proto = serialized_proto
    self._is_local = is_local
    with ops.name_scope(name, 'TreeEnsemble') as name:
        self._name = name
        self._resource_handle = self._create_resource()
        self._init_op = self._initialize()
        is_initialized_op = self.is_initialized()
        if (not is_local):
            self._saveable = _TreeEnsembleSavable(self.resource_handle, self.initializer, self.resource_handle.name)
            ops.add_to_collection(ops.GraphKeys.SAVEABLE_OBJECTS, self._saveable)
        resources.register_resource(self.resource_handle, self.initializer, is_initialized_op, is_shared=(not is_local))
def __init__(self, name, stamp_token=0, is_local=False, serialized_proto=):
    self._stamp_token = stamp_token
    self._serialized_proto = serialized_proto
    self._is_local = is_local
    with ops.name_scope(name, 'TreeEnsemble') as name:
        self._name = name
        self._resource_handle = self._create_resource()
        self._init_op = self._initialize()
        is_initialized_op = self.is_initialized()
        if (not is_local):
            self._saveable = _TreeEnsembleSavable(self.resource_handle, self.initializer, self.resource_handle.name)
            ops.add_to_collection(ops.GraphKeys.SAVEABLE_OBJECTS, self._saveable)
        resources.register_resource(self.resource_handle, self.initializer, is_initialized_op, is_shared=(not is_local))