()
| 543 | |
| 544 | |
| 545 | def get_default_session_config(): |
| 546 | if os.environ.get('OMP_NUM_THREADS'): |
| 547 | logging.warning( |
| 548 | 'OMP_NUM_THREADS is no longer used by the default Keras config. ' |
| 549 | 'To configure the number of threads, use tf.config.threading APIs.') |
| 550 | |
| 551 | config = context.context().config |
| 552 | config.allow_soft_placement = True |
| 553 | |
| 554 | return config |
| 555 | |
| 556 | |
| 557 | def get_default_graph_uid_map(): |
no test coverage detected