tensorflow::ops::ExtractJpegShape

#include <image_ops.h>

Extract the shape information of a JPEG-encoded image.

Summary

This op only parses the image header, so it is much faster than DecodeJpeg.

Args:

  • scope: A Scope object
  • contents: 0-D. The JPEG-encoded image.

Optional attributes (see Attrs):

  • output_type: (Optional) The output type of the operation (int32 or int64). Defaults to int32.

Returns:

  • Output: 1-D. The image shape with format [height, width, channels].

Constructors and Destructors

ExtractJpegShape(const ::tensorflow::Scope & scope, ::tensorflow::Input contents)
ExtractJpegShape(const ::tensorflow::Scope & scope, ::tensorflow::Input contents, const ExtractJpegShape::Attrs & attrs)

Public attributes

image_shape
operation

Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public static functions

OutputType(DataType x)

Structs

tensorflow::ops::ExtractJpegShape::Attrs

Optional attribute setters for ExtractJpegShape.

Public attributes

image_shape

::tensorflow::Output image_shape

operation

Operation operation

Public functions

ExtractJpegShape

 ExtractJpegShape(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents
)

ExtractJpegShape

 ExtractJpegShape(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input contents,
  const ExtractJpegShape::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Public static functions

OutputType

Attrs OutputType(
  DataType x
)