Returns a fake operation seed. In eager mode, user shouldn't set or depend on operation seed. Here, we generate a random seed based on global seed to make operation's randomness different and depend on the global seed. Returns: A fake operation seed based on global seed
(self)
| 436 | pywrap_tensorflow.TFE_ContextClearCaches(self._context_handle) |
| 437 | |
| 438 | def _internal_operation_seed(self): |
| 439 | """Returns a fake operation seed. |
| 440 | |
| 441 | In eager mode, user shouldn't set or depend on operation seed. |
| 442 | Here, we generate a random seed based on global seed to make |
| 443 | operation's randomness different and depend on the global seed. |
| 444 | |
| 445 | Returns: |
| 446 | A fake operation seed based on global seed. |
| 447 | """ |
| 448 | return self._rng.randint(0, _MAXINT32) |
| 449 | |
| 450 | def _initialize_logical_devices(self): |
| 451 | """Helper to initialize devices.""" |
no outgoing calls
no test coverage detected