Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_input
Function · 0.45
_compute_signature
Method · 0.45
_show_size
Method · 0.45
_show_mean_and_variance
Method · 0.45
_show_max_abs
Method · 0.45
_preprocess_traced_tensor
Method · 0.45
_cast_unsupported_dtypes
Method · 0.45
inner_custom_getter
Function · 0.45
_writeDummySavedModelForEv
Method · 0.45
CheckApproximation
Function · 0.45
_cast
Method · 0.45
testBfloat16
Method · 0.45
Calls
no outgoing calls
Tested by
15
_writeDummySavedModelForEv
Method · 0.36
CheckApproximation
Function · 0.36
_cast
Method · 0.36
testBfloat16
Method · 0.36
_OpError
Method · 0.36
testCastToTypeOfVariable
Method · 0.36
testGradients
Method · 0.36
testCast
Method · 0.36
testGradientWithIntegerPath
Method · 0.36
testNoIntegerGradient1
Method · 0.36
testNoIntegerGradient2
Method · 0.36
testNoIntegerGradient6
Method · 0.36