broadcast the model first get and clear the weight and bias parameters from the model then broadcast the parameters and model(without parameters) separately
broadcast the model first get and clear the weight and bias parameters from the model then broadcast 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
model
ModelBroadcast is used to broadcast model when doing model inference. Note: do not use it in model training since the broadcast models share weights and biases It shortens the broadcast time, which is especially useful when the model size is large
data type