Fix for build without ROCm or CUDA
This commit is contained in:
parent
3122804c85
commit
b84908da77
@ -82,10 +82,6 @@ struct RngSkip_Philox;
|
||||
|
||||
using CPUDevice = Eigen::ThreadPoolDevice;
|
||||
|
||||
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
|
||||
using GPUDevice = Eigen::GpuDevice;
|
||||
|
||||
struct UpdateVariableAndFill_Philox_Arg {
|
||||
int64 output_size;
|
||||
int64 alg_tag_skip;
|
||||
@ -93,6 +89,10 @@ struct UpdateVariableAndFill_Philox_Arg {
|
||||
Tensor* state_tensor;
|
||||
};
|
||||
|
||||
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
|
||||
|
||||
using GPUDevice = Eigen::GpuDevice;
|
||||
|
||||
// Declares the partially GPU-specialized functor structs.
|
||||
// must be kept at <=6 arguments because of a gcc/clang ABI incompatibility bug
|
||||
template <typename Distribution>
|
||||
|
Loading…
Reference in New Issue
Block a user