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

Method truncated_normal

tensorflow/python/ops/init_ops_v2.py:802–809  ·  view source on GitHub ↗

A deterministic truncated normal if seed is passed.

(self, shape, mean, stddev, dtype)

Source from the content-addressed store, hash-verified

800 shape=shape, minval=minval, maxval=maxval, dtype=dtype, seed=self.seed)
801
802 def truncated_normal(self, shape, mean, stddev, dtype):
803 """A deterministic truncated normal if seed is passed."""
804 if self.seed:
805 op = stateless_random_ops.stateless_truncated_normal
806 else:
807 op = random_ops.truncated_normal
808 return op(
809 shape=shape, mean=mean, stddev=stddev, dtype=dtype, seed=self.seed)
810
811# Compatibility aliases
812

Callers 15

inferenceFunction · 0.45
_initializerFunction · 0.45
_run_sessionMethod · 0.45
testSecondGradientMethod · 0.45
_getInitVariablesMethod · 0.45
parameterized_vs_naiveFunction · 0.45
funcMethod · 0.45
testLargeShapeMethod · 0.45

Calls 1

opFunction · 0.70

Tested by 15

_run_sessionMethod · 0.36
testSecondGradientMethod · 0.36
_getInitVariablesMethod · 0.36
parameterized_vs_naiveFunction · 0.36
funcMethod · 0.36
testLargeShapeMethod · 0.36
testNoCSEMethod · 0.36
testTruncatedNormalMethod · 0.36
old_truncated_normalMethod · 0.36
loop_fnMethod · 0.36
testGradientMethod · 0.36