(attribute, value)
| 64 | |
| 65 | def set_defaults_if_not_set_tensor_model_parallel_attributes(tensor): |
| 66 | def maybe_set(attribute, value): |
| 67 | if not hasattr(tensor, attribute): |
| 68 | setattr(tensor, attribute, value) |
| 69 | |
| 70 | for attribute in _MODEL_PARALLEL_ATTRIBUTE_DEFAULTS: |
| 71 | maybe_set(attribute, _MODEL_PARALLEL_ATTRIBUTE_DEFAULTS[attribute]) |
no outgoing calls
no test coverage detected