Searched refs:ReductionV2 (Results 1 – 13 of 13) sorted by relevance
/external/tensorflow/tensorflow/python/keras/ |
D | losses.py | 90 def __init__(self, reduction=losses_utils.ReductionV2.AUTO, name=None): 105 losses_utils.ReductionV2.validate(reduction) 198 (self.reduction == losses_utils.ReductionV2.AUTO or 199 self.reduction == losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE)): 214 if self.reduction == losses_utils.ReductionV2.AUTO: 215 return losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE 224 reduction=losses_utils.ReductionV2.AUTO, 311 reduction=losses_utils.ReductionV2.AUTO, 370 reduction=losses_utils.ReductionV2.AUTO, 430 reduction=losses_utils.ReductionV2.AUTO, [all …]
|
D | losses_test.py | 195 self.assertEqual(mse_obj.reduction, losses_utils.ReductionV2.AUTO) 310 reduction=losses_utils.ReductionV2.SUM, name='mse_1') 312 self.assertEqual(mse_obj.reduction, losses_utils.ReductionV2.SUM) 392 mse_obj = losses.MeanSquaredError(reduction=losses_utils.ReductionV2.NONE) 402 mse_obj = losses.MeanSquaredError(reduction=losses_utils.ReductionV2.SUM) 416 reduction=losses_utils.ReductionV2.SUM, name='mae_1') 418 self.assertEqual(mae_obj.reduction, losses_utils.ReductionV2.SUM) 484 mae_obj = losses.MeanAbsoluteError(reduction=losses_utils.ReductionV2.NONE) 494 mae_obj = losses.MeanAbsoluteError(reduction=losses_utils.ReductionV2.SUM) 519 reduction=losses_utils.ReductionV2.SUM, name='mape_1') [all …]
|
D | metrics_correctness_test.py | 560 losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, 561 losses_utils.ReductionV2.AUTO, 562 losses_utils.ReductionV2.SUM 618 losses_utils.ReductionV2.NONE: 620 losses_utils.ReductionV2.SUM: { 625 losses_utils.ReductionV2.AUTO: 627 losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE: 633 losses_utils.ReductionV2.NONE: [144, 56, 88], 634 losses_utils.ReductionV2.SUM: [198, 82, 116], 635 losses_utils.ReductionV2.AUTO: [144, 56, 88], [all …]
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | losses_utils.py | 33 class ReductionV2(object): class 257 reduction=ReductionV2.SUM_OVER_BATCH_SIZE): 259 if reduction == ReductionV2.NONE: 263 if reduction == ReductionV2.SUM_OVER_BATCH_SIZE: 270 reduction=ReductionV2.SUM_OVER_BATCH_SIZE, 289 ReductionV2.validate(reduction) 293 if reduction == ReductionV2.AUTO: 294 reduction = ReductionV2.SUM_OVER_BATCH_SIZE
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | training_eager_v1.py | 183 reduction=losses_utils.ReductionV2.NONE) 188 if loss_reduction == losses_utils.ReductionV2.AUTO: 189 loss_reduction = losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE 201 loss_reduction = losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE 213 if loss_reduction == losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE:
|
D | compile_utils.py | 209 if loss_obj.reduction == losses_utils.ReductionV2.SUM: 225 if (loss_obj.reduction == losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE or 226 loss_obj.reduction == losses_utils.ReductionV2.AUTO):
|
D | training_v1.py | 1614 reduction=losses_utils.ReductionV2.NONE) 1619 if loss_reduction == losses_utils.ReductionV2.AUTO: 1620 loss_reduction = losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE 1632 loss_reduction = losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE 1640 if loss_reduction == losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE:
|
D | training_utils_v1.py | 1229 reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE)
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.losses.-reduction.pbtxt | 3 is_instance: "<class \'tensorflow.python.keras.utils.losses_utils.ReductionV2\'>"
|
D | tensorflow.keras.losses.-reduction.pbtxt | 3 is_instance: "<class \'tensorflow.python.keras.utils.losses_utils.ReductionV2\'>"
|
/external/tensorflow/tensorflow/python/keras/saving/ |
D | losses_serialization_test.py | 48 reduction=losses_utils.ReductionV2.AUTO,
|
/external/tensorflow/tensorflow/python/keras/distribute/ |
D | parameter_server_training_test.py | 184 reduction=losses_utils.ReductionV2.NONE)(labels, pred))
|
D | distribute_strategy_test.py | 2064 losses_utils.ReductionV2.AUTO, 2065 losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE, 2066 losses_utils.ReductionV2.SUM 2569 reduction=losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE),
|