MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / saturate_cast

Function saturate_cast

tensorflow/python/ops/math_ops.py:754–784  ·  view source on GitHub ↗

Performs a safe saturating cast of `value` to `dtype`. This function casts the input to `dtype` without applying any scaling. If there is a danger that values would over or underflow in the cast, this op applies the appropriate clamping before the cast. Args: value: A `Tensor`. dt

(value, dtype, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

name_scopeMethod · 0.80
castFunction · 0.70

Tested by

no test coverage detected