message: Fix Tensor equality bug in _run_internal_graph.
  We can no longer simply say `t in collection` when `t` is a Tensor. We need to look up by id explicitly.
diff: @@ -827,10 +827,8 @@ class Network(base_layer.Layer):
  if 'training' in argspec:
  kwargs.setdefault('training', training)
  if (type(kwargs['training']) is ops.Tensor and # pylint: disable=unidiomatic-typecheck
  - [
  - kwargs['training'] is t
  - for t in backend._GRAPH_LEARNING_PHASES.values()
  - ]):
  + any([kwargs['training'] is x
  + for x in backend._GRAPH_LEARNING_PHASES.values()])):
  kwargs['training'] = training # Materialize placeholder.
  # Map Keras tensors in kwargs to their computed value.
  