diff --git a/paddle/fluid/framework/fleet/heter_ps/feature_value.h b/paddle/fluid/framework/fleet/heter_ps/feature_value.h index e8611c7a73aa7..0147622a84f6f 100644 --- a/paddle/fluid/framework/fleet/heter_ps/feature_value.h +++ b/paddle/fluid/framework/fleet/heter_ps/feature_value.h @@ -301,23 +301,6 @@ class CommonFeatureValueAccessor { __host__ __device__ CommonFeatureValueAccessor() {} __host__ __device__ ~CommonFeatureValueAccessor() {} - - #define DEFINE_GET_INDEX4( instance, field) \ - __host__ __device__ int get_##field##_index() { \ - return instance.field##Index(); \ - } - -#ifdef PADDLE_WITH_PSLIB - DEFINE_GET_INDEX4(common_feature_value, Show) - DEFINE_GET_INDEX4(common_feature_value, Click) - DEFINE_GET_INDEX4(common_feature_value, EmbedW) - DEFINE_GET_INDEX4(common_feature_value, EmbedxW) - DEFINE_GET_INDEX4(common_feature_value, DeltaScore) - DEFINE_GET_INDEX4(common_feature_value, Slot) - DEFINE_GET_INDEX4(common_feature_value, EmbedG2Sum) - DEFINE_GET_INDEX4(common_feature_value, MfDim) -#endif - __host__ int Initialize() { // NOTE(zhangminxu): gpups' sparse table optimizer type, // now only support embed&embedx 's sparse optimizer is the same