MCPcopy Create free account
hub / github.com/alibaba/nann / learning_phase_scope

Function learning_phase_scope

tensorflow/tensorflow/python/keras/backend.py:357–397  ·  view source on GitHub ↗

Provides a scope within which the learning phase is equal to `value`. The learning phase gets restored to its original value upon exiting the scope. Arguments: value: Learning phase value, either 0 or 1 (integers). Yields: None. Raises: ValueError: if `value` is neither `0`

(value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

get_graphFunction · 0.85
set_learning_phaseFunction · 0.85
executing_eagerlyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected