Skip to content

Commit

Permalink
[fix] Supported hkv cpu operator base cuckoo cpu operator
Browse files Browse the repository at this point in the history
  • Loading branch information
LinGeLin committed Mar 26, 2024
1 parent ca4b266 commit 685326f
Show file tree
Hide file tree
Showing 6 changed files with 1,319 additions and 198 deletions.
7 changes: 6 additions & 1 deletion tensorflow_recommenders_addons/dynamic_embedding/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ custom_op_library(
custom_cuda_op_library(
name = "_hkv_ops.so",
srcs = [
"kernels/cuckoo_hashtable_op.h",
"kernels/hkv_hashtable_op.cc",
"ops/hkv_hashtable_ops.cc",
"utils/utils.h",
],
] + glob(["kernels/lookup_impl/lookup_table_op_cpu*"]),
copts = [
"-Ofast",
],
Expand All @@ -110,4 +112,7 @@ custom_cuda_op_library(
"kernels/cuckoo_hashtable_op_gpu.h",
"kernels/hkv_hashtable_op_gpu.cu.cc",
]) + glob(["kernels/lookup_impl/lookup_table_op_hkv*"]),
deps = [
"//tensorflow_recommenders_addons/dynamic_embedding/core/lib/cuckoo:cuckoohash",
],
)
Loading

0 comments on commit 685326f

Please sign in to comment.