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

Function batch_norm_slow

tensorflow/python/ops/batch_norm_benchmark.py:61–65  ·  view source on GitHub ↗
(tensor, mean, variance, beta, gamma, scale)

Source from the content-addressed store, hash-verified

59
60
61def batch_norm_slow(tensor, mean, variance, beta, gamma, scale):
62 batch_norm = (tensor - mean) * math_ops.rsqrt(variance + 0.001)
63 if scale:
64 batch_norm *= gamma
65 return batch_norm + beta
66
67
68def build_graph(device, input_shape, axes, num_layers, mode, scale, train):

Callers 1

build_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected