def size(self, name=None): """Compute the number of elements in this table. Args: name: A name for the operation (optional). Returns: A scalar tensor containing the number of elements in this table. """ with ops.name_scope(name, "%s_Size" % self._name, [self._table_ref]) as scope: return gen_lookup_ops.lookup_table_size_v2(self._table_ref, name=scope)
def size(self, name=None): """Compute the number of elements in this table. Args: name: A name for the operation (optional). Returns: A scalar tensor containing the number of elements in this table. """ with ops.name_scope(name, "%s_Size" % self._name, [self._table_ref]) as scope: return gen_lookup_ops.lookup_table_size_v2(self._table_ref, name=scope)
def size(self, name=None): """Compute the number of elements in this table. Args: name: A name for the operation (optional). Returns: A scalar tensor containing the number of elements in this table. """ with ops.name_scope(name, "%s_Size" % self.name, [self.resource_handle]) as name: with ops.colocate_with(self.resource_handle): return gen_lookup_ops.lookup_table_size_v2( self.resource_handle, name=name)
def size(self, name=None): """Compute the number of elements in this table. Args: name: A name for the operation (optional). Returns: A scalar tensor containing the number of elements in this table. """ with ops.name_scope(name, "%s_Size" % self.name, [self.resource_handle]) as name: with ops.colocate_with(self.resource_handle): return gen_lookup_ops.lookup_table_size_v2( self.resource_handle, name=name)