support sparse table get shard_num from TableParameter (#17443)

test=develop
resnext-opt
jiaqi 6 years ago committed by GitHub
parent 0217555530
commit 05df39ac06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,6 +74,7 @@ class DownpourServer(Server):
table.table_class = "DownpourSparseTable"
table.type = pslib.PS_SPARSE_TABLE
table.compress_in_save = True
table.shard_num = 1000
table.accessor.accessor_class = "DownpourFeatureValueAccessor"
table.accessor.sparse_sgd_param.learning_rate = learning_rate
table.accessor.sparse_sgd_param.initial_g2sum = 3

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save