tf.raw_ops.QuantizeAndDequantizeV4Grad
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
Returns the gradient of QuantizeAndDequantizeV4
.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.raw_ops.QuantizeAndDequantizeV4Grad
tf . raw_ops . QuantizeAndDequantizeV4Grad (
gradients , input , input_min , input_max , axis =- 1 , name = None
)
Returns a gradient of 1 for inputs that are within the quantization range,
or 0 otherwise.
Args
gradients
A Tensor
. Must be one of the following types: bfloat16
, half
, float32
, float64
.
input
A Tensor
. Must have the same type as gradients
.
input_min
A Tensor
. Must have the same type as gradients
.
input_max
A Tensor
. Must have the same type as gradients
.
axis
An optional int
. Defaults to -1
.
name
A name for the operation (optional).
Returns
A tuple of Tensor
objects (input_backprop, input_min_backprop, input_max_backprop).
input_backprop
A Tensor
. Has the same type as gradients
.
input_min_backprop
A Tensor
. Has the same type as gradients
.
input_max_backprop
A Tensor
. Has the same type as gradients
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license .
Last updated 2024-01-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]