Added ROCm support for the pad op

This commit is contained in:
Jeffrey Poznanovic 2019-03-19 02:08:24 +00:00
parent 6e9cb400d1
commit 42621d70df
2 changed files with 4 additions and 4 deletions

View File

@ -294,7 +294,7 @@ TF_CALL_POD_TYPES(REGISTER_KERNEL);
TF_CALL_string(REGISTER_KERNEL);
#undef REGISTER_KERNEL
#if GOOGLE_CUDA
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
// Forward declarations of the functor specializations for GPU.
namespace functor {
#define DECLARE_GPU_SPEC(T, Dims) \
@ -395,7 +395,7 @@ REGISTER_KERNEL_BUILDER(Name("PadV2")
.HostMemory("constant_values")
.HostMemory("output"),
PadOp<CPUDevice, int32, int64>);
#endif
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM
#ifdef TENSORFLOW_USE_SYCL
// Registration of the GPU implementations.

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#if GOOGLE_CUDA
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
#define EIGEN_USE_GPU
@ -45,4 +45,4 @@ TF_CALL_uint8(DEFINE_GPU_SPECS);
} // namespace tensorflow
#endif // GOOGLE_CUDA
#endif // GOOGLE_CUDA || TENSORFLOW_USE_ROCM