doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
tf.identity View source on GitHub Return a Tensor with the same shape and contents as input. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.identity tf.identity( input, name=None ) The return value is not the same Tensor as the original, but contains the sa...
tensorflow.identity
tf.identity_n Returns a list of tensors with the same shapes and contents as the input View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.identity_n tf.identity_n( input, name=None ) tensors. This op can be used to override the gradient for complicated functions. For ...
tensorflow.identity_n
Module: tf.image Image ops. The tf.image module contains various functions for image processing and decoding-encoding Ops. Many of the encoding/decoding functions are also available in the core tf.io module. Image processing Resizing The resizing Ops accept input images as tensors of several types. They always output r...
tensorflow.image
tf.image.adjust_brightness View source on GitHub Adjust the brightness of RGB or Grayscale images. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.adjust_brightness tf.image.adjust_brightness( image, delta ) This is a convenience method that converts R...
tensorflow.image.adjust_brightness
tf.image.adjust_contrast View source on GitHub Adjust contrast of RGB or grayscale images. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.adjust_contrast tf.image.adjust_contrast( images, contrast_factor ) This is a convenience method that converts RG...
tensorflow.image.adjust_contrast
tf.image.adjust_gamma View source on GitHub Performs Gamma Correction. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.adjust_gamma tf.image.adjust_gamma( image, gamma=1, gain=1 ) on the input image. Also known as Power Law Transform. This function con...
tensorflow.image.adjust_gamma
tf.image.adjust_hue View source on GitHub Adjust hue of RGB images. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.adjust_hue tf.image.adjust_hue( image, delta, name=None ) This is a convenience method that converts an RGB image to float representatio...
tensorflow.image.adjust_hue
tf.image.adjust_jpeg_quality View source on GitHub Adjust jpeg encoding quality of an image. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.adjust_jpeg_quality tf.image.adjust_jpeg_quality( image, jpeg_quality, name=None ) This is a convenience method...
tensorflow.image.adjust_jpeg_quality
tf.image.adjust_saturation View source on GitHub Adjust saturation of RGB images. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.adjust_saturation tf.image.adjust_saturation( image, saturation_factor, name=None ) This is a convenience method that conv...
tensorflow.image.adjust_saturation
tf.image.central_crop View source on GitHub Crop the central region of the image(s). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.central_crop tf.image.central_crop( image, central_fraction ) Remove the outer parts of an image but retain the central...
tensorflow.image.central_crop
tf.image.combined_non_max_suppression View source on GitHub Greedily selects a subset of bounding boxes in descending order of score. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.combined_non_max_suppression tf.image.combined_non_max_suppression( box...
tensorflow.image.combined_non_max_suppression
tf.image.convert_image_dtype View source on GitHub Convert image to dtype, scaling its values if needed. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.convert_image_dtype tf.image.convert_image_dtype( image, dtype, saturate=False, name=None ) Images ...
tensorflow.image.convert_image_dtype
tf.image.crop_and_resize View source on GitHub Extracts crops from the input image tensor and resizes them. tf.image.crop_and_resize( image, boxes, box_indices, crop_size, method='bilinear', extrapolation_value=0, name=None ) Extracts crops from the input image tensor and resizes them using bilinear sa...
tensorflow.image.crop_and_resize
tf.image.crop_to_bounding_box View source on GitHub Crops an image to a specified bounding box. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.crop_to_bounding_box tf.image.crop_to_bounding_box( image, offset_height, offset_width, target_height, target...
tensorflow.image.crop_to_bounding_box
tf.image.draw_bounding_boxes View source on GitHub Draw bounding boxes on a batch of images. tf.image.draw_bounding_boxes( images, boxes, colors, name=None ) Outputs a copy of images but draws on top of the pixels zero or more bounding boxes specified by the locations in boxes. The coordinates of the each ...
tensorflow.image.draw_bounding_boxes
tf.image.extract_glimpse View source on GitHub Extracts a glimpse from the input tensor. tf.image.extract_glimpse( input, size, offsets, centered=True, normalized=True, noise='uniform', name=None ) Returns a set of windows called glimpses extracted at location offsets from the input tensor. If the wind...
tensorflow.image.extract_glimpse
tf.image.extract_patches View source on GitHub Extract patches from images. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.extract_patches tf.image.extract_patches( images, sizes, strides, rates, padding, name=None ) This op collects patches from the ...
tensorflow.image.extract_patches
tf.image.flip_left_right View source on GitHub Flip an image horizontally (left to right). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.flip_left_right tf.image.flip_left_right( image ) Outputs the contents of image flipped along the width dimension...
tensorflow.image.flip_left_right
tf.image.flip_up_down View source on GitHub Flip an image vertically (upside down). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.flip_up_down tf.image.flip_up_down( image ) Outputs the contents of image flipped along the height dimension. See also r...
tensorflow.image.flip_up_down
tf.image.generate_bounding_box_proposals Generate bounding box proposals from encoded bounding boxes. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.generate_bounding_box_proposals tf.image.generate_bounding_box_proposals( scores, bbox_deltas, image_info, anc...
tensorflow.image.generate_bounding_box_proposals
tf.image.grayscale_to_rgb View source on GitHub Converts one or more images from Grayscale to RGB. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.grayscale_to_rgb tf.image.grayscale_to_rgb( images, name=None ) Outputs a tensor of the same DType and ra...
tensorflow.image.grayscale_to_rgb
tf.image.hsv_to_rgb Convert one or more images from HSV to RGB. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.hsv_to_rgb tf.image.hsv_to_rgb( images, name=None ) Outputs a tensor of the same shape as the images tensor, containing the RGB value of the pixels...
tensorflow.image.hsv_to_rgb
tf.image.image_gradients View source on GitHub Returns image gradients (dy, dx) for each color channel. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.image_gradients tf.image.image_gradients( image ) Both output tensors have the same shape as the inp...
tensorflow.image.image_gradients
tf.image.non_max_suppression View source on GitHub Greedily selects a subset of bounding boxes in descending order of score. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.non_max_suppression tf.image.non_max_suppression( boxes, scores, max_output_size...
tensorflow.image.non_max_suppression
tf.image.non_max_suppression_overlaps View source on GitHub Greedily selects a subset of bounding boxes in descending order of score. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.non_max_suppression_overlaps tf.image.non_max_suppression_overlaps( ove...
tensorflow.image.non_max_suppression_overlaps
tf.image.non_max_suppression_padded View source on GitHub Greedily selects a subset of bounding boxes in descending order of score. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.non_max_suppression_padded tf.image.non_max_suppression_padded( boxes, sc...
tensorflow.image.non_max_suppression_padded
tf.image.non_max_suppression_with_scores View source on GitHub Greedily selects a subset of bounding boxes in descending order of score. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.non_max_suppression_with_scores tf.image.non_max_suppression_with_scores...
tensorflow.image.non_max_suppression_with_scores
tf.image.pad_to_bounding_box View source on GitHub Pad image with zeros to the specified height and width. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.pad_to_bounding_box tf.image.pad_to_bounding_box( image, offset_height, offset_width, target_heigh...
tensorflow.image.pad_to_bounding_box
tf.image.per_image_standardization View source on GitHub Linearly scales each image in image to have mean 0 and variance 1. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.per_image_standardization tf.image.per_image_standardization( image ) For each 3...
tensorflow.image.per_image_standardization
tf.image.psnr View source on GitHub Returns the Peak Signal-to-Noise Ratio between a and b. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.psnr tf.image.psnr( a, b, max_val, name=None ) This is intended to be used on signals (or images). Produces a PS...
tensorflow.image.psnr
tf.image.random_brightness View source on GitHub Adjust the brightness of images by a random factor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_brightness tf.image.random_brightness( image, max_delta, seed=None ) Equivalent to adjust_bright...
tensorflow.image.random_brightness
tf.image.random_contrast View source on GitHub Adjust the contrast of an image or images by a random factor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_contrast tf.image.random_contrast( image, lower, upper, seed=None ) Equivalent to adjust...
tensorflow.image.random_contrast
tf.image.random_crop View source on GitHub Randomly crops a tensor to a given size. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_crop, tf.compat.v1.random_crop tf.image.random_crop( value, size, seed=None, name=None ) Slices a shape size port...
tensorflow.image.random_crop
tf.image.random_flip_left_right View source on GitHub Randomly flip an image horizontally (left to right). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_flip_left_right tf.image.random_flip_left_right( image, seed=None ) With a 1 in 2 chance, ...
tensorflow.image.random_flip_left_right
tf.image.random_flip_up_down View source on GitHub Randomly flips an image vertically (upside down). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_flip_up_down tf.image.random_flip_up_down( image, seed=None ) With a 1 in 2 chance, outputs the ...
tensorflow.image.random_flip_up_down
tf.image.random_hue View source on GitHub Adjust the hue of RGB images by a random factor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_hue tf.image.random_hue( image, max_delta, seed=None ) Equivalent to adjust_hue() but uses a delta randoml...
tensorflow.image.random_hue
tf.image.random_jpeg_quality View source on GitHub Randomly changes jpeg encoding quality for inducing jpeg noise. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_jpeg_quality tf.image.random_jpeg_quality( image, min_jpeg_quality, max_jpeg_qualit...
tensorflow.image.random_jpeg_quality
tf.image.random_saturation View source on GitHub Adjust the saturation of RGB images by a random factor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.random_saturation tf.image.random_saturation( image, lower, upper, seed=None ) Equivalent to adjust...
tensorflow.image.random_saturation
tf.image.resize Resize images to size using the specified method. tf.image.resize( images, size, method=ResizeMethod.BILINEAR, preserve_aspect_ratio=False, antialias=False, name=None ) Resized images will be distorted if their original aspect ratio is not the same as size. To avoid distortions see tf.image.re...
tensorflow.image.resize
tf.image.ResizeMethod View source on GitHub See tf.image.resize for details. Class Variables AREA 'area' BICUBIC 'bicubic' BILINEAR 'bilinear' GAUSSIAN 'gaussian' LANCZOS3 'lanczos3' LANCZOS5 'lanczos5' MITCHELLCUBIC 'mitchellcubic' NEAREST_NEIGHBOR 'nearest'
tensorflow.image.resizemethod
tf.image.resize_with_crop_or_pad View source on GitHub Crops and/or pads an image to a target width and height. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.resize_image_with_crop_or_pad, tf.compat.v1.image.resize_with_crop_or_pad tf.image.resize_with_cr...
tensorflow.image.resize_with_crop_or_pad
tf.image.resize_with_pad Resizes and pads an image to a target width and height. tf.image.resize_with_pad( image, target_height, target_width, method=ResizeMethod.BILINEAR, antialias=False ) Resizes an image to a target width and height by keeping the aspect ratio the same without distortion. If the target di...
tensorflow.image.resize_with_pad
tf.image.rgb_to_grayscale View source on GitHub Converts one or more images from RGB to Grayscale. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.rgb_to_grayscale tf.image.rgb_to_grayscale( images, name=None ) Outputs a tensor of the same DType and ra...
tensorflow.image.rgb_to_grayscale
tf.image.rgb_to_hsv Converts one or more images from RGB to HSV. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.rgb_to_hsv tf.image.rgb_to_hsv( images, name=None ) Outputs a tensor of the same shape as the images tensor, containing the HSV value of the pixel...
tensorflow.image.rgb_to_hsv
tf.image.rgb_to_yiq View source on GitHub Converts one or more images from RGB to YIQ. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.rgb_to_yiq tf.image.rgb_to_yiq( images ) Outputs a tensor of the same shape as the images tensor, containing the YIQ ...
tensorflow.image.rgb_to_yiq
tf.image.rgb_to_yuv View source on GitHub Converts one or more images from RGB to YUV. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.rgb_to_yuv tf.image.rgb_to_yuv( images ) Outputs a tensor of the same shape as the images tensor, containing the YUV ...
tensorflow.image.rgb_to_yuv
tf.image.rot90 View source on GitHub Rotate image(s) counter-clockwise by 90 degrees. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.rot90 tf.image.rot90( image, k=1, name=None ) For example: a=tf.constant([[[1],[2]], [[3],[4]]]) # rot...
tensorflow.image.rot90
tf.image.sample_distorted_bounding_box View source on GitHub Generate a single randomly distorted bounding box for an image. tf.image.sample_distorted_bounding_box( image_size, bounding_boxes, seed=0, min_object_covered=0.1, aspect_ratio_range=None, area_range=None, max_attempts=None, use_image_if_n...
tensorflow.image.sample_distorted_bounding_box
tf.image.sobel_edges View source on GitHub Returns a tensor holding Sobel edge maps. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.sobel_edges tf.image.sobel_edges( image ) Arguments image Image tensor with shape [batch_size, h, w, d] and ty...
tensorflow.image.sobel_edges
tf.image.ssim View source on GitHub Computes SSIM index between img1 and img2. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.ssim tf.image.ssim( img1, img2, max_val, filter_size=11, filter_sigma=1.5, k1=0.01, k2=0.03 ) This function is based on the s...
tensorflow.image.ssim
tf.image.ssim_multiscale View source on GitHub Computes the MS-SSIM between img1 and img2. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.ssim_multiscale tf.image.ssim_multiscale( img1, img2, max_val, power_factors=_MSSSIM_WEIGHTS, filter_size=11, ...
tensorflow.image.ssim_multiscale
tf.image.stateless_random_brightness Adjust the brightness of images by a random factor deterministically. tf.image.stateless_random_brightness( image, max_delta, seed ) Equivalent to adjust_brightness() using a delta randomly picked in the interval [-max_delta, max_delta). Guarantees the same results given the s...
tensorflow.image.stateless_random_brightness
tf.image.stateless_random_contrast Adjust the contrast of images by a random factor deterministically. tf.image.stateless_random_contrast( image, lower, upper, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g....
tensorflow.image.stateless_random_contrast
tf.image.stateless_random_crop Randomly crops a tensor to a given size in a deterministic manner. tf.image.stateless_random_crop( value, size, seed, name=None ) Slices a shape size portion out of value at a uniformly chosen offset. Requires value.shape >= size. If a dimension should not be cropped, pass the full ...
tensorflow.image.stateless_random_crop
tf.image.stateless_random_flip_left_right Randomly flip an image horizontally (left to right) deterministically. tf.image.stateless_random_flip_left_right( image, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e...
tensorflow.image.stateless_random_flip_left_right
tf.image.stateless_random_flip_up_down Randomly flip an image vertically (upside down) deterministically. tf.image.stateless_random_flip_up_down( image, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and independent of global seed settings (e.g. tf.ran...
tensorflow.image.stateless_random_flip_up_down
tf.image.stateless_random_hue Adjust the hue of RGB images by a random factor deterministically. tf.image.stateless_random_hue( image, max_delta, seed ) Equivalent to adjust_hue() but uses a delta randomly picked in the interval [-max_delta, max_delta). Guarantees the same results given the same seed independent ...
tensorflow.image.stateless_random_hue
tf.image.stateless_random_jpeg_quality Deterministically radomize jpeg encoding quality for inducing jpeg noise. tf.image.stateless_random_jpeg_quality( image, min_jpeg_quality, max_jpeg_quality, seed ) Guarantees the same results given the same seed independent of how many times the function is called, and indep...
tensorflow.image.stateless_random_jpeg_quality
tf.image.stateless_random_saturation Adjust the saturation of RGB images by a random factor deterministically. tf.image.stateless_random_saturation( image, lower, upper, seed=None ) Equivalent to adjust_saturation() but uses a saturation_factor randomly picked in the interval [lower, upper). Guarantees the same r...
tensorflow.image.stateless_random_saturation
tf.image.stateless_sample_distorted_bounding_box Generate a randomly distorted bounding box for an image deterministically. tf.image.stateless_sample_distorted_bounding_box( image_size, bounding_boxes, seed, min_object_covered=0.1, aspect_ratio_range=None, area_range=None, max_attempts=None, use_image_if_n...
tensorflow.image.stateless_sample_distorted_bounding_box
tf.image.total_variation View source on GitHub Calculate and return the total variation for one or more images. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.total_variation tf.image.total_variation( images, name=None ) The total variation is the sum...
tensorflow.image.total_variation
tf.image.transpose View source on GitHub Transpose image(s) by swapping the height and width dimension. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.transpose, tf.compat.v1.image.transpose_image tf.image.transpose( image, name=None ) Usage Example: ...
tensorflow.image.transpose
tf.image.yiq_to_rgb View source on GitHub Converts one or more images from YIQ to RGB. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.yiq_to_rgb tf.image.yiq_to_rgb( images ) Outputs a tensor of the same shape as the images tensor, containing the RGB ...
tensorflow.image.yiq_to_rgb
tf.image.yuv_to_rgb View source on GitHub Converts one or more images from YUV to RGB. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.yuv_to_rgb tf.image.yuv_to_rgb( images ) Outputs a tensor of the same shape as the images tensor, containing the RGB ...
tensorflow.image.yuv_to_rgb
tf.IndexedSlices View source on GitHub A sparse representation of a set of tensor slices at given indices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.IndexedSlices tf.IndexedSlices( values, indices, dense_shape=None ) This class is a simple wrapper for ...
tensorflow.indexedslices
tf.IndexedSlicesSpec View source on GitHub Type specification for a tf.IndexedSlices. Inherits From: TypeSpec View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.IndexedSlicesSpec tf.IndexedSlicesSpec( shape=None, dtype=tf.dtypes.float32, indices_dtype=tf.dtypes....
tensorflow.indexedslicesspec
tf.init_scope View source on GitHub A context manager that lifts ops out of control-flow scopes and function-building graphs. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.init_scope @tf_contextlib.contextmanager tf.init_scope() There is often a need to lift v...
tensorflow.init_scope
tf.inside_function Indicates whether the caller code is executing inside a tf.function. tf.inside_function() Returns Boolean, True if the caller code is executing inside a tf.function rather than eagerly. Example: tf.inside_function() False @tf.function def f(): print(tf.inside_function()) f() True
tensorflow.inside_function
Module: tf.io Public API for tf.io namespace. Modules gfile module: Public API for tf.io.gfile namespace. Classes class FixedLenFeature: Configuration for parsing a fixed-length input feature. class FixedLenSequenceFeature: Configuration for parsing a variable-length input feature into a Tensor. class RaggedFeature: Co...
tensorflow.io
tf.io.decode_and_crop_jpeg Decode and Crop a JPEG-encoded image to a uint8 tensor. View aliases Main aliases tf.image.decode_and_crop_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_and_crop_jpeg, tf.compat.v1.io.decode_and_crop_jpeg tf.io.decode_and_crop_jpeg( ...
tensorflow.io.decode_and_crop_jpeg
tf.io.decode_base64 Decode web-safe base64-encoded strings. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.decode_base64, tf.compat.v1.io.decode_base64 tf.io.decode_base64( input, name=None ) Input may or may not have padding at the end. See EncodeBase64 for paddi...
tensorflow.io.decode_base64
tf.io.decode_bmp Decode the first frame of a BMP-encoded image to a uint8 tensor. View aliases Main aliases tf.image.decode_bmp Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_bmp, tf.compat.v1.io.decode_bmp tf.io.decode_bmp( contents, channels=0, name=None ) The a...
tensorflow.io.decode_bmp
tf.io.decode_compressed Decompress strings. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.decode_compressed, tf.compat.v1.io.decode_compressed tf.io.decode_compressed( bytes, compression_type='', name=None ) This op decompresses each element of the bytes input Te...
tensorflow.io.decode_compressed
tf.io.decode_csv View source on GitHub Convert CSV records to tensors. Each column maps to one tensor. tf.io.decode_csv( records, record_defaults, field_delim=',', use_quote_delim=True, na_value='', select_cols=None, name=None ) RFC 4180 format is expected for the CSV records. (https://tools.ietf.org/h...
tensorflow.io.decode_csv
tf.io.decode_gif Decode the frame(s) of a GIF-encoded image to a uint8 tensor. View aliases Main aliases tf.image.decode_gif Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_gif, tf.compat.v1.io.decode_gif tf.io.decode_gif( contents, name=None ) GIF images with fr...
tensorflow.io.decode_gif
tf.io.decode_image View source on GitHub Function for decode_bmp, decode_gif, decode_jpeg, and decode_png. View aliases Main aliases tf.image.decode_image Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_image, tf.compat.v1.io.decode_image tf.io.decode_image( ...
tensorflow.io.decode_image
tf.io.decode_jpeg Decode a JPEG-encoded image to a uint8 tensor. View aliases Main aliases tf.image.decode_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_jpeg, tf.compat.v1.io.decode_jpeg tf.io.decode_jpeg( contents, channels=0, ratio=1, fancy_upscaling=True, ...
tensorflow.io.decode_jpeg
tf.io.decode_json_example Convert JSON-encoded Example records to binary protocol buffer strings. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.decode_json_example, tf.compat.v1.io.decode_json_example tf.io.decode_json_example( json_examples, name=None ) This op ...
tensorflow.io.decode_json_example
tf.io.decode_png Decode a PNG-encoded image to a uint8 or uint16 tensor. View aliases Main aliases tf.image.decode_png Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.decode_png, tf.compat.v1.io.decode_png tf.io.decode_png( contents, channels=0, dtype=tf.dtypes.uint8, name...
tensorflow.io.decode_png
tf.io.decode_proto The op extracts fields from a serialized protocol buffers message into tensors. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.decode_proto tf.io.decode_proto( bytes, message_type, field_names, output_types, descriptor_source='local://', m...
tensorflow.io.decode_proto
tf.io.decode_raw Convert raw byte strings into tensors. tf.io.decode_raw( input_bytes, out_type, little_endian=True, fixed_length=None, name=None ) Args input_bytes Each element of the input Tensor is converted to an array of bytes. out_type DType of the output. Acceptable types are half, float, do...
tensorflow.io.decode_raw
tf.io.deserialize_many_sparse View source on GitHub Deserialize and concatenate SparseTensors from a serialized minibatch. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.deserialize_many_sparse, tf.compat.v1.io.deserialize_many_sparse tf.io.deserialize_many_spar...
tensorflow.io.deserialize_many_sparse
tf.io.encode_base64 Encode strings into web-safe base64 format. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.encode_base64, tf.compat.v1.io.encode_base64 tf.io.encode_base64( input, pad=False, name=None ) Refer to the following article for more information on ba...
tensorflow.io.encode_base64
tf.io.encode_jpeg JPEG-encode an image. View aliases Main aliases tf.image.encode_jpeg Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.encode_jpeg, tf.compat.v1.io.encode_jpeg tf.io.encode_jpeg( image, format='', quality=95, progressive=False, optimize_size=False, chro...
tensorflow.io.encode_jpeg
tf.io.encode_png PNG-encode an image. View aliases Main aliases tf.image.encode_png Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.encode_png, tf.compat.v1.io.encode_png tf.io.encode_png( image, compression=-1, name=None ) image is a 3-D uint8 or uint16 Tensor of shape [...
tensorflow.io.encode_png
tf.io.encode_proto The op serializes protobuf messages provided in the input tensors. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.encode_proto tf.io.encode_proto( sizes, values, field_names, message_type, descriptor_source='local://', name=None ) The typ...
tensorflow.io.encode_proto
tf.io.extract_jpeg_shape Extract the shape information of a JPEG-encoded image. View aliases Main aliases tf.image.extract_jpeg_shape Compat aliases for migration See Migration guide for more details. tf.compat.v1.image.extract_jpeg_shape, tf.compat.v1.io.extract_jpeg_shape tf.io.extract_jpeg_shape( contents, ...
tensorflow.io.extract_jpeg_shape
tf.io.FixedLenFeature View source on GitHub Configuration for parsing a fixed-length input feature. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.FixedLenFeature, tf.compat.v1.io.FixedLenFeature tf.io.FixedLenFeature( shape, dtype, default_value=None ) To ...
tensorflow.io.fixedlenfeature
tf.io.FixedLenSequenceFeature View source on GitHub Configuration for parsing a variable-length input feature into a Tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.FixedLenSequenceFeature, tf.compat.v1.io.FixedLenSequenceFeature tf.io.FixedLenSequenceFea...
tensorflow.io.fixedlensequencefeature
Module: tf.io.gfile Public API for tf.io.gfile namespace. Classes class GFile: File I/O wrappers without thread locking. Functions copy(...): Copies data from src to dst. exists(...): Determines whether a path exists or not. glob(...): Returns a list of files that match the given pattern(s). isdir(...): Returns whether...
tensorflow.io.gfile
tf.io.gfile.copy View source on GitHub Copies data from src to dst. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.copy tf.io.gfile.copy( src, dst, overwrite=False ) Args src string, name of the file whose contents need to be copied ds...
tensorflow.io.gfile.copy
tf.io.gfile.exists View source on GitHub Determines whether a path exists or not. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.exists tf.io.gfile.exists( path ) Args path string, a path Returns True if the path exists, whether ...
tensorflow.io.gfile.exists
tf.io.gfile.GFile View source on GitHub File I/O wrappers without thread locking. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.gfile.GFile, tf.compat.v1.gfile.Open, tf.compat.v1.io.gfile.GFile tf.io.gfile.GFile( name, mode='r' ) The main roles of the tf.i...
tensorflow.io.gfile.gfile
tf.io.gfile.glob View source on GitHub Returns a list of files that match the given pattern(s). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.glob tf.io.gfile.glob( pattern ) The patterns are defined as strings. Supported patterns are defined here...
tensorflow.io.gfile.glob
tf.io.gfile.isdir View source on GitHub Returns whether the path is a directory or not. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.isdir tf.io.gfile.isdir( path ) Args path string, path to a potential directory Returns True, ...
tensorflow.io.gfile.isdir
tf.io.gfile.listdir View source on GitHub Returns a list of entries contained within a directory. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.listdir tf.io.gfile.listdir( path ) The list is in arbitrary order. It does not contain the special ent...
tensorflow.io.gfile.listdir
tf.io.gfile.makedirs View source on GitHub Creates a directory and all parent/intermediate directories. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.makedirs tf.io.gfile.makedirs( path ) It succeeds if path already exists and is writable. Ar...
tensorflow.io.gfile.makedirs
tf.io.gfile.mkdir View source on GitHub Creates a directory with the name given by path. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.mkdir tf.io.gfile.mkdir( path ) Args path string, name of the directory to be created Notes: The par...
tensorflow.io.gfile.mkdir
tf.io.gfile.remove View source on GitHub Deletes the path located at 'path'. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.remove tf.io.gfile.remove( path ) Args path string, a path Raises errors.OpError Propagates any errors ...
tensorflow.io.gfile.remove
tf.io.gfile.rename View source on GitHub Rename or move a file / directory. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.io.gfile.rename tf.io.gfile.rename( src, dst, overwrite=False ) Args src string, pathname for a file dst string, pathna...
tensorflow.io.gfile.rename