You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorflow/core/ops/ops.pbtxt
+69-1Lines changed: 69 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6003,6 +6003,74 @@ op {
6003
6003
description: "Provide a basic summary of numeric value types, range and distribution."
6004
6004
allows_uninitialized_input: true
6005
6005
}
6006
+
op {
6007
+
name: "DecodeAndCropJpeg"
6008
+
input_arg {
6009
+
name: "contents"
6010
+
description: "0-D. The JPEG-encoded image."
6011
+
type: DT_STRING
6012
+
}
6013
+
input_arg {
6014
+
name: "crop_window"
6015
+
description: "1-D. The crop window: [crop_y, crop_x, crop_height, crop_width]."
6016
+
type: DT_INT32
6017
+
}
6018
+
output_arg {
6019
+
name: "image"
6020
+
description: "3-D with shape `[height, width, channels]`.."
6021
+
type: DT_UINT8
6022
+
}
6023
+
attr {
6024
+
name: "channels"
6025
+
type: "int"
6026
+
default_value {
6027
+
i: 0
6028
+
}
6029
+
description: "Number of color channels for the decoded image."
6030
+
}
6031
+
attr {
6032
+
name: "ratio"
6033
+
type: "int"
6034
+
default_value {
6035
+
i: 1
6036
+
}
6037
+
description: "Downscaling ratio."
6038
+
}
6039
+
attr {
6040
+
name: "fancy_upscaling"
6041
+
type: "bool"
6042
+
default_value {
6043
+
b: true
6044
+
}
6045
+
description: "If true use a slower but nicer upscaling of the\nchroma planes (yuv420/422 only)."
6046
+
}
6047
+
attr {
6048
+
name: "try_recover_truncated"
6049
+
type: "bool"
6050
+
default_value {
6051
+
b: false
6052
+
}
6053
+
description: "If true try to recover an image from truncated input."
6054
+
}
6055
+
attr {
6056
+
name: "acceptable_fraction"
6057
+
type: "float"
6058
+
default_value {
6059
+
f: 1
6060
+
}
6061
+
description: "The minimum required fraction of lines before a truncated\ninput is accepted."
6062
+
}
6063
+
attr {
6064
+
name: "dct_method"
6065
+
type: "string"
6066
+
default_value {
6067
+
s: ""
6068
+
}
6069
+
description: "string specifying a hint about the algorithm used for\ndecompression. Defaults to \"\" which maps to a system-specific\ndefault. Currently valid values are [\"INTEGER_FAST\",\n\"INTEGER_ACCURATE\"]. The hint may be ignored (e.g., the internal\njpeg library changes to a version that does not have that specific\noption.)"
6070
+
}
6071
+
summary: "Decode and Crop a JPEG-encoded image to a uint8 tensor."
6072
+
description: "The attr `channels` indicates the desired number of color channels for the\ndecoded image.\n\nAccepted values are:\n\n* 0: Use the number of channels in the JPEG-encoded image.\n* 1: output a grayscale image.\n* 3: output an RGB image.\n\nIf needed, the JPEG-encoded image is transformed to match the requested number\nof color channels.\n\nThe attr `ratio` allows downscaling the image by an integer factor during\ndecoding. Allowed values are: 1, 2, 4, and 8. This is much faster than\ndownscaling the image later.\n\n\nIt is equivalent to a combination of decode and crop, but much faster by only\ndecoding partial jpeg image."
6073
+
}
6006
6074
op {
6007
6075
name: "DecodeBase64"
6008
6076
input_arg {
@@ -6181,7 +6249,7 @@ op {
6181
6249
description: "string specifying a hint about the algorithm used for\ndecompression. Defaults to \"\" which maps to a system-specific\ndefault. Currently valid values are [\"INTEGER_FAST\",\n\"INTEGER_ACCURATE\"]. The hint may be ignored (e.g., the internal\njpeg library changes to a version that does not have that specific\noption.)"
6182
6250
}
6183
6251
summary: "Decode a JPEG-encoded image to a uint8 tensor."
6184
-
description: "The attr `channels` indicates the desired number of color channels for the\ndecoded image.\n\nAccepted values are:\n\n* 0: Use the number of channels in the JPEG-encoded image.\n* 1: output a grayscale image.\n* 3: output an RGB image.\n\nIf needed, the JPEG-encoded image is transformed to match the requested number\nof color channels.\n\nThe attr `ratio` allows downscaling the image by an integer factor during\ndecoding. Allowed values are: 1, 2, 4, and 8. This is much faster than\ndownscaling the image later.\n\nThis op also supports decoding PNGs and non-animated GIFs since the interface is\nthe same, though it is cleaner to use `tf.image.decode_image`."
6252
+
description: "The attr `channels` indicates the desired number of color channels for the\ndecoded image.\n\nAccepted values are:\n\n* 0: Use the number of channels in the JPEG-encoded image.\n* 1: output a grayscale image.\n* 3: output an RGB image.\n\nIf needed, the JPEG-encoded image is transformed to match the requested number\nof color channels.\n\nThe attr `ratio` allows downscaling the image by an integer factor during\ndecoding. Allowed values are: 1, 2, 4, and 8. This is much faster than\ndownscaling the image later.\n\n\nThis op also supports decoding PNGs and non-animated GIFs since the interface is\nthe same, though it is cleaner to use `tf.image.decode_image`."
0 commit comments