()
| 2725 | |
| 2726 | |
| 2727 | def _tf_deterministic_ops(): |
| 2728 | if _tf_deterministic_ops.value is None: |
| 2729 | tf_deterministic_ops = os.environ.get('TF_DETERMINISTIC_OPS') |
| 2730 | if tf_deterministic_ops is not None: |
| 2731 | tf_deterministic_ops = tf_deterministic_ops.lower() |
| 2732 | _tf_deterministic_ops.value = ( |
| 2733 | tf_deterministic_ops == 'true' or |
| 2734 | tf_deterministic_ops == '1') |
| 2735 | return _tf_deterministic_ops.value |
| 2736 | _tf_deterministic_ops.value = None |
| 2737 | |
| 2738 |