MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_default_session_config

Function get_default_session_config

tensorflow/python/keras/backend.py:545–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

543
544
545def 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
557def get_default_graph_uid_map():

Callers 2

_get_sessionFunction · 0.85
_create_sessionFunction · 0.85

Calls 2

getMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected