Added ROCm support for the pad op
This commit is contained in:
parent
6e9cb400d1
commit
42621d70df
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user