Skip to content

Commit bcbae6b

Browse files
mrawayorionr
authored andcommitted
Mark full sync data parallel ops with rules
Instead of using hard-coded rules or rely on gpu_strategy to mark full sync data parallel ops, we need some generic rules that is applicable to both the single and distributed setting.
1 parent 147d8cf commit bcbae6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

caffe2/python/layer_model_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ def output_schema(self, schema):
404404

405405
@property
406406
def preproc_output_schema(self):
407-
assert self._preproc_output_schema is not None
407+
if self._preproc_output_schema is None:
408+
self._preproc_output_schema = self.input_feature_schema + self.trainer_extra_schema
408409
return self._preproc_output_schema
409410

410411
@preproc_output_schema.setter

0 commit comments

Comments
 (0)