HomeSort by relevance Sort by last modified time
    Searched defs:losses (Results 1 - 6 of 6) sorted by null

  /external/tensorflow/tensorflow/python/layers/
network.py 678 def losses(self): member in class:GraphNetwork
679 """Retrieve the network's losses.
681 Will only include losses that are either
683 (e.g. will not include losses that depend on tensors
689 losses = []
691 losses += layer.losses
693 return losses
702 reachable = layers_util.get_reachable_from_inputs(relevant_inputs, losses)
703 relevant_conditional_losses = [x for x in losses if x in reachable
    [all...]
base.py 52 losses, and updates, as well as applying TensorFlow ops to input tensors.
76 `losses`: List of losses added by this layer.
309 def losses(self): member in class:Layer
310 """Losses which are associated with this `Layer`.
320 # _losses may only contain variable regularization losses when executing
327 def add_loss(self, losses, inputs=None):
330 Some losses (for instance, activity regularization losses) may be dependent
332 layer on different inputs `a` and `b`, some entries in `layer.losses` ma
    [all...]
  /external/tensorflow/tensorflow/python/keras/_impl/keras/layers/
wrappers.py 85 def losses(self): member in class:Wrapper
86 return self.layer.losses + self._losses
474 def losses(self): member in class:Bidirectional
475 if hasattr(self.forward_layer, 'losses'):
476 return self.forward_layer.losses + self.backward_layer.losses
recurrent.py 213 def losses(self): member in class:StackedRNNCells
214 losses = []
217 losses += cell.losses
218 return losses + self._losses
792 def losses(self): member in class:RNN
793 losses = []
795 losses += self.cell.losses
796 return losses + self._losse
    [all...]
  /external/tensorflow/tensorflow/contrib/eager/python/
network.py 454 def add_loss(self, losses, inputs=None):
461 def losses(self): member in class:Network
462 """Gather losses from `Layer`s in the `Network`.
464 Note that when executing eagerly, `Layer.losses` evaluates
473 layer_losses.extend(layer.losses)
    [all...]
  /external/tensorflow/tensorflow/contrib/kfac/python/ops/
layer_collection.py 122 """Registry of information about layers and losses.
131 losses: a list of LossFunction objects. The loss to be optimized is their
156 def losses(self): member in class:LayerCollection
412 if not self.losses:
414 inputs_to_losses = nest.flatten(tuple(loss.inputs for loss in self.losses))
418 return math_ops.add_n(tuple(loss.evaluate() for loss in self.losses))
422 tuple(loss.evaluate_on_sample() for loss in self.losses))

Completed in 182 milliseconds