MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / remove

Method remove

tensorflow/python/ops/lookup_ops.py:2060–2076  ·  view source on GitHub ↗

Removes `keys` and its associated values from the table. If a key is not present in the table, it is silently ignored. Args: keys: Keys to remove. Can be a tensor of any shape. Must match the table's key type. name: A name for the operation (optional). Returns:

(self, keys, name=None)

Source from the content-addressed store, hash-verified

2058 return op
2059
2060 def remove(self, keys, name=None):
2061 """Removes `keys` and its associated values from the table.
2062
2063 If a key is not present in the table, it is silently ignored.
2064
2065 Args:
2066 keys: Keys to remove. Can be a tensor of any shape. Must match the table's
2067 key type.
2068 name: A name for the operation (optional).
2069
2070 Returns:
2071 The created Operation.
2072
2073 Raises:
2074 TypeError: when `keys` do not match the table data types.
2075 """
2076 return self.erase(keys, name)
2077
2078 def export(self, name=None):
2079 """Returns tensors of all keys and values in the table.

Callers 12

testBasicMethod · 0.95
testBasicBoolMethod · 0.95
testMapStringToFloatMethod · 0.95
testMapInt64ToFloatMethod · 0.95
testVectorValuesMethod · 0.95
testVectorKeysMethod · 0.95
testResizeMethod · 0.95
testExportMethod · 0.95
testSaveRestoreMethod · 0.95
testVectorSaveRestoreMethod · 0.95

Calls 1

eraseMethod · 0.95

Tested by 12

testBasicMethod · 0.76
testBasicBoolMethod · 0.76
testMapStringToFloatMethod · 0.76
testMapInt64ToFloatMethod · 0.76
testVectorValuesMethod · 0.76
testVectorKeysMethod · 0.76
testResizeMethod · 0.76
testExportMethod · 0.76
testSaveRestoreMethod · 0.76
testVectorSaveRestoreMethod · 0.76