Skip to content

Commit 69301f3

Browse files
Update ops-related pbtxt files.
PiperOrigin-RevId: 168494220
1 parent 9d56f41 commit 69301f3

2 files changed

Lines changed: 126 additions & 1 deletion

File tree

tensorflow/core/ops/compat/ops_history.v1.pbtxt

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6593,6 +6593,63 @@ op {
65936593
}
65946594
allows_uninitialized_input: true
65956595
}
6596+
op {
6597+
name: "DecodeAndCropJpeg"
6598+
input_arg {
6599+
name: "contents"
6600+
type: DT_STRING
6601+
}
6602+
input_arg {
6603+
name: "crop_window"
6604+
type: DT_INT32
6605+
}
6606+
output_arg {
6607+
name: "image"
6608+
type: DT_UINT8
6609+
}
6610+
attr {
6611+
name: "channels"
6612+
type: "int"
6613+
default_value {
6614+
i: 0
6615+
}
6616+
}
6617+
attr {
6618+
name: "ratio"
6619+
type: "int"
6620+
default_value {
6621+
i: 1
6622+
}
6623+
}
6624+
attr {
6625+
name: "fancy_upscaling"
6626+
type: "bool"
6627+
default_value {
6628+
b: true
6629+
}
6630+
}
6631+
attr {
6632+
name: "try_recover_truncated"
6633+
type: "bool"
6634+
default_value {
6635+
b: false
6636+
}
6637+
}
6638+
attr {
6639+
name: "acceptable_fraction"
6640+
type: "float"
6641+
default_value {
6642+
f: 1
6643+
}
6644+
}
6645+
attr {
6646+
name: "dct_method"
6647+
type: "string"
6648+
default_value {
6649+
s: ""
6650+
}
6651+
}
6652+
}
65966653
op {
65976654
name: "DecodeBase64"
65986655
input_arg {

tensorflow/core/ops/ops.pbtxt

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6003,6 +6003,74 @@ op {
60036003
description: "Provide a basic summary of numeric value types, range and distribution."
60046004
allows_uninitialized_input: true
60056005
}
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+
}
60066074
op {
60076075
name: "DecodeBase64"
60086076
input_arg {
@@ -6181,7 +6249,7 @@ op {
61816249
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.)"
61826250
}
61836251
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`."
61856253
}
61866254
op {
61876255
name: "DecodePng"

0 commit comments

Comments
 (0)