MCPcopy Create free account
hub / github.com/alibaba/nann / _num_present

Function _num_present

tensorflow/tensorflow/python/ops/losses/losses_impl.py:90–129  ·  view source on GitHub ↗

Computes the number of elements in the loss function induced by `weights`. A given weights tensor induces different numbers of usable elements in the `losses` tensor. The `weights` tensor is broadcast across `losses` for all possible dimensions. For example, if `losses` is a tensor of dimensi

(losses, weights, per_batch=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

compute_weighted_lossFunction · 0.70

Calls 8

executing_eagerlyMethod · 0.80
reduce_sumMethod · 0.80
_num_elementsFunction · 0.70
_rankMethod · 0.45
name_scopeMethod · 0.45
castMethod · 0.45
rangeMethod · 0.45
rankMethod · 0.45

Tested by

no test coverage detected