diff --git a/tensorflow/python/ops/lookup_ops.py b/tensorflow/python/ops/lookup_ops.py index 89109469b7b..e65b53e3ac9 100644 --- a/tensorflow/python/ops/lookup_ops.py +++ b/tensorflow/python/ops/lookup_ops.py @@ -171,6 +171,11 @@ class InitializableLookupTableBase(LookupInterface): def initializer(self): return self._init_op + @property + @deprecated("2018-12-15", "Use `initializer` instead.") + def init(self): + return self.initializer + @property def default_value(self): """The default value of the table.""" @@ -830,6 +835,11 @@ class IdTableWithHashBuckets(LookupInterface): with ops.name_scope(None, "init"): return control_flow_ops.no_op() + @property + @deprecated("2018-12-15", "Use `initializer` instead.") + def init(self): + return self.initializer + @property def resource_handle(self): if self._table is not None: