it will use proto buffer serialization for broadcasting if set true
broadcast the model first get and clear Const values from the model then get and clear the weight and bias parameters from the model finally broadcast Const values, the parameters and model(without parameters) separately
broadcast the model first get and clear Const values from the model then get and clear the weight and bias parameters from the model finally broadcast Const values, the parameters and model(without parameters) separately
SparkContext
model to broadcast
this
get the broadcast model put the weight and bias back to the model
get the broadcast model put the weight and bias back to the model
if init gradParameter.
model
ModelBroadcast is used to broadcast model.
Note: If you want to use this to broadcast training model, please use value(true) to get the model. And before broadcasting please make sure the model's parameter is compacted.
data type