summaryrefslogtreecommitdiff
path: root/Codes/flownet2/src/ops/downsample/downsample_kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'Codes/flownet2/src/ops/downsample/downsample_kernel.h')
-rw-r--r--Codes/flownet2/src/ops/downsample/downsample_kernel.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Codes/flownet2/src/ops/downsample/downsample_kernel.h b/Codes/flownet2/src/ops/downsample/downsample_kernel.h
new file mode 100644
index 0000000..bcc4e3f
--- /dev/null
+++ b/Codes/flownet2/src/ops/downsample/downsample_kernel.h
@@ -0,0 +1,18 @@
+#ifndef FLOWNET_DOWNSAMPLE_H_
+#define FLOWNET_DOWNSAMPLE_H_
+
+#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
+#include "tensorflow/core/framework/tensor_types.h"
+#include "tensorflow/core/platform/types.h"
+
+namespace tensorflow {
+
+typedef Eigen::GpuDevice GPUDevice;
+
+bool Downsample(const GPUDevice& device,
+ typename TTypes<float, 4>::ConstTensor input,
+ typename TTypes<float, 4>::Tensor output);
+
+} // end namespace tensorflow
+
+#endif // FLOWNET_DOWNSAMPLE_H_