MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / batch_norm_py

Function batch_norm_py

tensorflow/python/ops/batch_norm_benchmark.py:55–58  ·  view source on GitHub ↗

Python implementation of batch normalization.

(tensor, mean, variance, beta, gamma, scale)

Source from the content-addressed store, hash-verified

53# batch_norm *= gamma
54# return batch_norm + beta
55def batch_norm_py(tensor, mean, variance, beta, gamma, scale):
56 """Python implementation of batch normalization."""
57 return nn_impl.batch_normalization(tensor, mean, variance, beta, gamma if
58 scale else None, 0.001)
59
60
61def batch_norm_slow(tensor, mean, variance, beta, gamma, scale):

Callers 1

build_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected