Skip to content

Add Hash Table to structures and functional #2

Closed
@mikeheddes

Description

@mikeheddes

Add the function hash_table(keys: Tensor, values: Tensor) -> Tensor to the functional module and the class HashTable to the structures module.

  • F.hash_table(keys, values)
  • S.HashTable(dim)
  • S.HashTable().from_tensors(keys, values)
  • HashTable[key] -> value
  • HashTable[key] = value -> value
  • HashTable.get(key) -> value
  • HashTable.add(key, value)
  • HashTable.set(key, value)
  • HashTable.remove(key)
  • del HashTable[key]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions