tf.raw_ops.ExtractJpegShape
Извлечение информации о форме JPEG-изображения.
tf.raw_ops.ExtractJpegShape(
contents, output_type=tf.dtypes.int32, name=None
)
Этот оператор анализирует только заголовок изображения, поэтому он намного быстрее, чем DecodeJpeg.
| Аргументы | |
|---|---|
contents | A Tensor типа string. 0-мерный. Кодированное в JPEG изображение. |
output_type | Необязательный tf.DType из: tf.int32, tf.int64. По умолчанию tf.int32. (Необязательно) Тип вывода операции (int32 или int64). По умолчанию int32. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor типа output_type. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/raw_ops/ExtractJpegShape