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

Function sqrt

tensorflow/python/keras/backend.py:2093–2105  ·  view source on GitHub ↗

Element-wise square root. Arguments: x: Tensor or variable. Returns: A tensor.

(x)

Source from the content-addressed store, hash-verified

2091
2092@keras_export('keras.backend.sqrt')
2093def sqrt(x):
2094 """Element-wise square root.
2095
2096 Arguments:
2097 x: Tensor or variable.
2098
2099 Returns:
2100 A tensor.
2101 """
2102 zero = _constant_to_tensor(0., x.dtype.base_dtype)
2103 inf = _constant_to_tensor(np.inf, x.dtype.base_dtype)
2104 x = clip_ops.clip_by_value(x, zero, inf)
2105 return math_ops.sqrt(x)
2106
2107
2108@keras_export('keras.backend.exp')

Callers 15

GetDivisorsFunction · 0.50
GetDivisorsForRangeFunction · 0.50
FinalizeAggregationFunction · 0.50
RsqrtEvalFunction · 0.50
CheckErrorStatsFunction · 0.50
TESTFunction · 0.50
InitializeMethod · 0.50
InitializeMethod · 0.50
CompareRoundingResultsFunction · 0.50
ComputeMethod · 0.50

Calls 1

_constant_to_tensorFunction · 0.85

Tested by 6

CheckErrorStatsFunction · 0.40
TESTFunction · 0.40
InitializeMethod · 0.40
CompareRoundingResultsFunction · 0.40
AgreeFunction · 0.40