MCPcopy Create free account
hub / github.com/pytorch/pytorch / add_post_sync_ops

Function add_post_sync_ops

caffe2/python/examples/resnet50_trainer.py:494–501  ·  view source on GitHub ↗

Add ops applied after initial parameter sync.

(model)

Source from the content-addressed store, hash-verified

492 )
493
494 def add_post_sync_ops(model):
495 """Add ops applied after initial parameter sync."""
496 for param_info in model.GetOptimizationParamInfo(model.GetParams()):
497 if param_info.blob_copy is not None:
498 model.param_init_net.HalfToFloat(
499 param_info.blob,
500 param_info.blob_copy[core.DataType.FLOAT]
501 )
502
503 data_parallel_model.Parallelize(
504 train_model,

Callers

nothing calls this directly

Calls 2

GetParamsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…