tensorflow::
    
   ops::
    
   EncodePng
  
  
   #include <image_ops.h>
  
  PNG-encode an image.
Summary
   
    image
   
   is a 3-D uint8 or uint16
   
    Tensor
   
   of shape
   
    [height, width, channels]
   
   where
   
    channels
   
   is:
  
- 1: for grayscale.
 - 2: for grayscale + alpha.
 - 3: for RGB.
 - 4: for RGBA.
 
   The ZLIB compression level,
   
    compression
   
   , can be -1 for the PNG-encoder default or a value from 0 to 9. 9 is the highest compression level, generating the smallest output, but is slower.
  
Args:
- scope: A Scope object
 - 
     image: 3-D with shape
     
[height, width, channels]. 
   Optional attributes (see
   
    
     Attrs
    
   
   ):
   
- compression: Compression level.
 
Returns:
- 
     
Output: 0-D. PNG-encoded image. 
     Constructors and Destructors | 
   |
|---|---|
     
      
       EncodePng
      
      (const ::
      
       tensorflow::Scope
      
      & scope, ::
      
       tensorflow::Input
      
      image)
     
      | 
   |
     
      
       EncodePng
      
      (const ::
      
       tensorflow::Scope
      
      & scope, ::
      
       tensorflow::Input
      
      image, const
      
       EncodePng::Attrs
      
      & attrs)
     
      | 
   
     Public attributes | 
   |
|---|---|
     
      
       contents
      
     
     | 
    |
     
      
       operation
      
     
     | 
    |
     Public functions | 
   |
|---|---|
     
      
       node
      
      () const
     
     | 
    
     
       ::tensorflow::Node *
      
      | 
   
     
      
       operator::tensorflow::Input
      
      () const
     
     | 
    
     
      
      | 
   
     
      
       operator::tensorflow::Output
      
      () const
     
     | 
    
     
      
      | 
   
     Public static functions | 
   |
|---|---|
     
      
       Compression
      
      (int64 x)
     
     | 
    |
     Structs | 
   |
|---|---|
| 
     
      tensorflow::
       | 
    
      Optional attribute setters for EncodePng .  | 
   
Public attributes
Public functions
EncodePng
EncodePng( const ::tensorflow::Scope & scope, ::tensorflow::Input image, const EncodePng::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const