Note: Functions takingTensorarguments can also take anything accepted bytf.convert_to_tensor.
TensorFlow provides several operations that you can use to cast tensor data types in your graph.
tf.string_to_numbertf.to_doubletf.to_floattf.to_bfloat16tf.to_int32tf.to_int64tf.casttf.bitcasttf.saturate_castTensorFlow provides several operations that you can use to determine the shape of a tensor and change the shape of a tensor.
tf.broadcast_dynamic_shapetf.broadcast_static_shapetf.shapetf.shape_ntf.sizetf.ranktf.reshapetf.squeezetf.expand_dimstf.meshgridTensorFlow provides several operations to slice or extract parts of a tensor, or join multiple tensors together.
tf.slicetf.strided_slicetf.splittf.tiletf.padtf.concattf.stacktf.parallel_stacktf.unstacktf.reverse_sequencetf.reversetf.reverse_v2tf.transposetf.extract_image_patchestf.space_to_batch_ndtf.space_to_batchtf.required_space_to_batch_paddingstf.batch_to_space_ndtf.batch_to_spacetf.space_to_depthtf.depth_to_spacetf.gathertf.gather_ndtf.unique_with_countstf.scatter_ndtf.dynamic_partitiontf.dynamic_stitchtf.boolean_masktf.one_hottf.sequence_masktf.dequantizetf.quantize_v2tf.quantized_concattf.setdiff1dOperations used to help train for better quantization accuracy.
tf.fake_quant_with_min_max_argstf.fake_quant_with_min_max_args_gradienttf.fake_quant_with_min_max_varstf.fake_quant_with_min_max_vars_gradienttf.fake_quant_with_min_max_vars_per_channeltf.fake_quant_with_min_max_vars_per_channel_gradient
© 2018 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/api_guides/python/array_ops