File tree Expand file tree Collapse file tree 3 files changed +3
-893
lines changed Expand file tree Collapse file tree 3 files changed +3
-893
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ def example_multiprocess_sync():
129129 print (
130130 f"Main: Worker completed. Worker's weight sum: { model_state ['weight_sum' ]:.4f} "
131131 )
132- print (f"✓ Weight synchronization successful!" )
132+ print (" Weight synchronization successful!" )
133133
134134
135135def example_shared_memory_sync ():
@@ -163,7 +163,7 @@ def example_shared_memory_sync():
163163 weights_td ["weight" ].fill_ (2.0 )
164164 weights_td ["bias" ].fill_ (1.0 )
165165
166- print (f "Main: Sending weights via shared memory..." )
166+ print ("Main: Sending weights via shared memory..." )
167167 sender .update_weights (weights_td )
168168
169169 # Workers automatically see updates via shared memory!
@@ -179,7 +179,7 @@ def example_shared_memory_sync():
179179 print (
180180 f"Main: Worker completed. Worker's weight sum: { model_state ['weight_sum' ]:.4f} "
181181 )
182- print (f"✓ Shared memory synchronization successful!" )
182+ print (" Shared memory synchronization successful!" )
183183
184184
185185def main ():
You can’t perform that action at this time.
0 commit comments