Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic resample operation gradients and optimization #16520

Merged
merged 9 commits into from
Jun 4, 2018
17 changes: 16 additions & 1 deletion tensorflow/contrib/periodic_resample/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ exports_files(["LICENSE"])

load(
"//tensorflow:tensorflow.bzl",
"py_test",
"tf_cc_test",
"tf_gen_op_libs",
"tf_custom_op_library",
"tf_custom_op_py_library",
"tf_gen_op_wrapper_py",
)
load("//tensorflow:tensorflow.bzl", "py_test")

cc_library(
name = "all_ops",
Expand Down Expand Up @@ -84,6 +85,20 @@ py_test(
":init_py",
"//tensorflow/contrib/util:util_py",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:gradient_checker",
],
)

tf_cc_test(
name = "periodic_resample_op_cc_test",
size = "small",
srcs = [
"ops/array_ops_test.cc",
],
deps = [
":all_ops",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ REGISTER_KERNEL_BUILDER(Name("PeriodicResample")
.Device(DEVICE_CPU),
PeriodicResampleOp);


REGISTER_KERNEL_BUILDER(Name("PeriodicResampleOpGrad")
.Device(DEVICE_CPU),
PeriodicResampleOpGrad);

} // namespace tensorflow