Searched refs:loss_name (Results 1 – 6 of 6) sorted by relevance
41 def prepare_simple_model(input_tensor, loss_name, target): argument46 if loss_name == 'sparse_categorical_crossentropy':51 elif loss_name == 'categorical_crossentropy':56 elif loss_name == 'binary_crossentropy':
504 loss_name = loss.name505 if loss_name is None:507 loss_name = loss_type.__name__510 ' while using as loss `' + loss_name + '`. '
1656 loss_name = self.output_names[i] + '_loss'1657 with K.name_scope(loss_name):1704 self._compile_metrics_tensors[loss_name] = aggregated_output_loss
296 loss_name = self.model.loss297 if hasattr(loss_name, '__name__'):298 loss_name = loss_name.__name__299 if loss_name == 'categorical_crossentropy' and len(y.shape) != 2:
293 for loss_name in tfgan_losses.__all__:294 if loss_name in manual_tests: continue295 keyword_args = (generator_keyword_args if 'generator' in loss_name else297 add_loss_consistency_test(ConsistentLossesTest, loss_name, keyword_args)
959 loss_name = "loss_%s" % type(loss)962 loss_name = loss.name964 "to REGULARIZATION_LOSSES.", v_name, loss_name)