Skip to content

Commit

Permalink
Revert "add get func (PaddlePaddle#60)"
Browse files Browse the repository at this point in the history
This reverts commit a27936c.
  • Loading branch information
zmxdream committed Oct 26, 2022
1 parent 506e0c3 commit 62dc501
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions paddle/fluid/framework/fleet/heter_ps/feature_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62dc501

Please sign in to comment.