auto_batch_weight¶
-
tfsnippet.
auto_batch_weight
(*batch_arrays)¶ Automatically inspect the metric weight for an evaluation mini-batch.
Parameters: *batch_arrays – Mini-batch arrays. The .size
of the first array will be used as the weight.Returns: The inspected weight, or 1. if any error occurs during inspection.