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

Method cast

tensorflow/python/ops/init_ops.py:1099–1101  ·  view source on GitHub ↗

Return p or (1-p).

(i, p)

Source from the content-addressed store, hash-verified

1097 return math_ops.matmul(math_ops.matmul(p1, p2), p3)
1098
1099 def cast(i, p):
1100 """Return p or (1-p)."""
1101 return i * p + (1 - i) * (eye - p)
1102
1103 for i in [0, 1]:
1104 for j in [0, 1]:

Callers 15

_pad_all_inputFunction · 0.45
_compute_signatureMethod · 0.45
_show_sizeMethod · 0.45
_show_max_absMethod · 0.45
inner_custom_getterFunction · 0.45
CheckApproximationFunction · 0.45
_castMethod · 0.45
testBfloat16Method · 0.45

Calls

no outgoing calls

Tested by 15

CheckApproximationFunction · 0.36
_castMethod · 0.36
testBfloat16Method · 0.36
_OpErrorMethod · 0.36
testGradientsMethod · 0.36
testCastMethod · 0.36