tf.math.reduce_sum | TensorFlow v2.16.1 (original) (raw)
Python v2.16.1
tf
- Overview
- AggregationMethod
- CriticalSection
- DeviceSpec
- GradientTape
- Graph
- IndexedSlices
- IndexedSlicesSpec
- Module
- Operation
- OptionalSpec
- RaggedTensor
- RaggedTensorSpec
- RegisterGradient
- SparseTensorSpec
- Tensor
- TensorArray
- TensorArraySpec
- TensorShape
- TensorSpec
- TypeSpec
- UnconnectedGradients
- Variable
- Variable.SaveSliceInfo
- VariableAggregation
- VariableSynchronization
- approx_top_k
- argsort
- batch_to_space
- bitcast
- boolean_mask
- broadcast_dynamic_shape
- broadcast_static_shape
- broadcast_to
- case
- cast
- clip_by_global_norm
- clip_by_norm
- clip_by_value
- concat
- cond
- constant
- constant_initializer
- control_dependencies
- conv
- conv2d_backprop_filter_v2
- conv2d_backprop_input_v2
- convert_to_tensor
- custom_gradient
- device
- dynamic_partition
- dynamic_stitch
- edit_distance
- einsum
- ensure_shape
- executing_eagerly
- expand_dims
- extract_volume_patches
- eye
- fftnd
- fill
- fingerprint
- foldl
- foldr
- function
- gather
- gather_nd
- get_current_name_scope
- get_logger
- get_static_value
- grad_pass_through
- gradients
- group
- guarantee_const
- hessians
- histogram_fixed_width
- histogram_fixed_width_bins
- identity
- identity_n
- ifftnd
- init_scope
- inside_function
- irfftnd
- is_symbolic_tensor
- is_tensor
- linspace
- load_library
- load_op_library
- make_ndarray
- make_tensor_proto
- map_fn
- meshgrid
- name_scope
- no_gradient
- no_op
- nondifferentiable_batch_function
- norm
- numpy_function
- one_hot
- ones
- ones_initializer
- ones_like
- pad
- parallel_stack
- py_function
- ragged_fill_empty_rows
- ragged_fill_empty_rows_grad
- random_index_shuffle
- random_normal_initializer
- random_uniform_initializer
- range
- rank
- realdiv
- recompute_grad
- register_tensor_conversion_function
- repeat
- required_space_to_batch_paddings
- reshape
- reverse
- reverse_sequence
- rfftnd
- roll
- scan
- scatter_nd
- searchsorted
- sequence_mask
- shape
- shape_n
- size
- slice
- sort
- space_to_batch
- space_to_batch_nd
- split
- squeeze
- stack
- stop_gradient
- strided_slice
- switch_case
- tensor_scatter_nd_add
- tensor_scatter_nd_max
- tensor_scatter_nd_min
- tensor_scatter_nd_sub
- tensor_scatter_nd_update
- tensordot
- tile
- timestamp
- transpose
- truncatediv
- truncatemod
- tuple
- type_spec_from_value
- unique
- unique_with_counts
- unravel_index
- unstack
- variable_creator_scope
- vectorized_map
- where
- while_loop
- zeros
- zeros_initializer
- zeros_like
tf.compat
- Overview
- as_bytes
- as_str
- as_str_any
- as_text
- dimension_at_index
- dimension_value
- forward_compatibility_horizon
- forward_compatible
- path_to_str
- v1
* Overview
* AttrValue
* AttrValue.ListValue
* ConditionalAccumulator
* ConditionalAccumulatorBase
* ConfigProto
* ConfigProto.DeviceCountEntry
* ConfigProto.Experimental
* DeviceSpec
* Dimension
* Event
* FixedLengthRecordReader
* GPUOptions
* GPUOptions.Experimental
* GPUOptions.Experimental.VirtualDevices
* GraphDef
* GraphKeys
* GraphOptions
* HistogramProto
* IdentityReader
* InteractiveSession
* LMDBReader
* LogMessage
* MetaGraphDef
* MetaGraphDef.CollectionDefEntry
* MetaGraphDef.MetaInfoDef
* MetaGraphDef.MetaInfoDef.FunctionAliasesEntry
* MetaGraphDef.SignatureDefEntry
* NameAttrList
* NameAttrList.AttrEntry
* NodeDef
* NodeDef.AttrEntry
* NodeDef.ExperimentalDebugInfo
* OptimizerOptions
* Print
* ReaderBase
* RunMetadata
* RunMetadata.FunctionGraphs
* RunOptions
* RunOptions.Experimental
* RunOptions.Experimental.RunHandlerPoolOptions
* Session
* SessionLog
* SparseConditionalAccumulator
* SparseTensorValue
* Summary
* Summary.Audio
* Summary.Image
* Summary.Value
* SummaryMetadata
* SummaryMetadata.PluginData
* TFRecordReader
* TensorInfo
* TensorInfo.CompositeTensor
* TensorInfo.CooSparse
* TextLineReader
* Variable
* VariableAggregation
* VariableScope
* WholeFileReader
* add_check_numerics_ops
* add_to_collection
* add_to_collections
* all_variables
* arg_max
* arg_min
* argmax
* argmin
* assert_equal
* assert_greater
* assert_greater_equal
* assert_integer
* assert_less
* assert_less_equal
* assert_near
* assert_negative
* assert_non_negative
* assert_non_positive
* assert_none_equal
* assert_positive
* assert_rank
* assert_rank_at_least
* assert_rank_in
* assert_scalar
* assert_type
* assert_variables_initialized
* assign
* assign_add
* assign_sub
* batch_gather
* batch_scatter_update
* batch_to_space
* batch_to_space_nd
* bincount
* boolean_mask
* case
* clip_by_average_norm
* colocate_with
* cond
* confusion_matrix
* constant
* constant_initializer
* container
* control_flow_v2_enabled
* convert_to_tensor
* convert_to_tensor_or_indexed_slices
* convert_to_tensor_or_sparse_tensor
* count_nonzero
* count_up_to
* create_partitioned_variables
* decode_csv
* decode_raw
* delete_session_tensor
* depth_to_space
* device
* disable_control_flow_v2
* disable_eager_execution
* disable_resource_variables
* disable_tensor_equality
* disable_v2_behavior
* disable_v2_tensorshape
* div
* enable_control_flow_v2
* enable_eager_execution
* enable_resource_variables
* enable_tensor_equality
* enable_v2_behavior
* enable_v2_tensorshape
* executing_eagerly
* executing_eagerly_outside_functions
* expand_dims
* extract_image_patches
* fixed_size_partitioner
* floor_div
* foldl
* foldr
* gather
* gather_nd
* get_collection
* get_collection_ref
* get_default_graph
* get_default_session
* get_local_variable
* get_seed
* get_session_handle
* get_session_tensor
* get_variable
* get_variable_scope
* global_variables
* global_variables_initializer
* glorot_normal_initializer
* glorot_uniform_initializer
* gradients
* hessians
* initialize_all_tables
* initialize_all_variables
* initialize_local_variables
* initialize_variables
* is_variable_initialized
* load_file_system_library
* local_variables
* local_variables_initializer
* make_template
* map_fn
* min_max_variable_partitioner
* model_variables
* moving_average_variables
* multinomial
* name_scope
* no_regularizer
* norm
* ones_initializer
* ones_like
* op_scope
* orthogonal_initializer
* pad
* parse_example
* parse_single_example
* placeholder
* placeholder_with_default
* py_func
* quantize_v2
* random_normal_initializer
* random_poisson
* random_uniform_initializer
* reduce_all
* reduce_any
* reduce_join
* reduce_logsumexp
* reduce_max
* reduce_mean
* reduce_min
* reduce_prod
* reduce_sum
* report_uninitialized_variables
* reset_default_graph
* resource_variables_enabled
* reverse_sequence
* scalar_mul
* scan
* scatter_add
* scatter_div
* scatter_max
* scatter_min
* scatter_mul
* scatter_nd_add
* scatter_nd_sub
* scatter_nd_update
* scatter_sub
* scatter_update
* serialize_many_sparse
* serialize_sparse
* set_random_seed
* setdiff1d
* shape
* size
* space_to_batch
* space_to_depth
* sparse_add
* sparse_concat
* sparse_matmul
* sparse_merge
* sparse_placeholder
* sparse_reduce_max
* sparse_reduce_max_sparse
* sparse_reduce_sum
* sparse_reduce_sum_sparse
* sparse_segment_mean
* sparse_segment_sqrt_n
* sparse_segment_sum
* sparse_split
* sparse_to_dense
* squeeze
* string_split
* string_to_hash_bucket
* string_to_number
* substr
* tables_initializer
* to_bfloat16
* to_complex128
* to_complex64
* to_double
* to_float
* to_int32
* to_int64
* trainable_variables
* transpose
* truncated_normal_initializer
* tuple
* uniform_unit_scaling_initializer
* variable_axis_size_partitioner
* variable_creator_scope
* variable_op_scope
* variable_scope
* variables_initializer
* variance_scaling_initializer
* verify_tensor_all_finite
* where
* while_loop
* wrap_function
* zeros_initializer
* zeros_like
* data
* Overview
* Dataset
* FixedLengthRecordDataset
* Iterator
* TFRecordDataset
* TextLineDataset
* get_output_classes
* get_output_shapes
* get_output_types
* make_initializable_iterator
* make_one_shot_iterator
* experimental
* Overview
* Counter
* CsvDataset
* RaggedTensorStructure
* RandomDataset
* SparseTensorStructure
* SqlDataset
* TensorArrayStructure
* TensorStructure
* choose_from_datasets
* make_batched_features_dataset
* make_csv_dataset
* map_and_batch_with_legacy_function
* sample_from_datasets
* distributions
* Overview
* Bernoulli
* Beta
* Categorical
* Dirichlet
* DirichletMultinomial
* Distribution
* Exponential
* Gamma
* Laplace
* Multinomial
* Normal
* RegisterKL
* ReparameterizationType
* StudentT
* Uniform
* kl_divergence
* errors
* Overview
* error_code_from_exception_type
* exception_type_from_error_code
* raise_exception_on_not_ok_status
* flags
* Overview
* ArgumentParser
* ArgumentSerializer
* BaseListParser
* BooleanFlag
* BooleanParser
* CantOpenFlagFileError
* CsvListSerializer
* DEFINE
* DEFINE_alias
* DEFINE_bool
* DEFINE_enum
* DEFINE_enum_class
* DEFINE_flag
* DEFINE_float
* DEFINE_integer
* DEFINE_list
* DEFINE_multi
* DEFINE_multi_enum
* DEFINE_multi_enum_class
* DEFINE_multi_float
* DEFINE_multi_integer
* DEFINE_multi_string
* DEFINE_spaceseplist
* DEFINE_string
* DuplicateFlagError
* EnumClassFlag
* EnumClassListSerializer
* EnumClassParser
* EnumClassSerializer
* EnumFlag
* EnumParser
* Error
* FLAGS
* Flag
* FlagHolder
* FlagNameConflictsWithMethodError
* FlagValues
* FloatParser
* IllegalFlagValueError
* IntegerParser
* ListParser
* ListSerializer
* MultiEnumClassFlag
* MultiFlag
* UnparsedFlagAccessError
* UnrecognizedFlagError
* ValidationError
* WhitespaceSeparatedListParser
* adopt_module_key_flags
* declare_key_flag
* disclaim_key_flags
* doc_to_help
* flag_dict_to_args
* get_help_width
* mark_bool_flags_as_mutual_exclusive
* mark_flag_as_required
* mark_flags_as_mutual_exclusive
* mark_flags_as_required
* multi_flags_validator
* override_value
* register_multi_flags_validator
* register_validator
* set_default
* text_wrap
* validator
* gfile
* Overview
* Copy
* DeleteRecursively
* Exists
* FastGFile
* Glob
* IsDirectory
* ListDirectory
* MakeDirs
* MkDir
* Remove
* Rename
* Stat
* Walk
* graph_util
* Overview
* convert_variables_to_constants
* extract_sub_graph
* must_run_on_cpu
* remove_training_nodes
* tensor_shape_from_node_def_name
* image
* Overview
* ResizeMethod
* crop_and_resize
* draw_bounding_boxes
* extract_glimpse
* extract_image_patches
* extract_patches
* resize
* resize_area
* resize_bicubic
* resize_bilinear
* resize_image_with_pad
* resize_nearest_neighbor
* sample_distorted_bounding_box
* io
* Overview
* TFRecordCompressionType
* tf_record_iterator
* linalg
* Overview
* diag
* diag_part
* matmul
* matrix_transpose
* tensor_diag_part
* trace
* lite
* Overview
* OpHint
* OpHint.OpHintArgumentTracker
* TFLiteConverter
* TocoConverter
* toco_convert
* logging
* Overview
* TaskLevelStatusMessage
* debug
* error
* fatal
* flush
* get_verbosity
* info
* log
* log_every_n
* log_first_n
* log_if
* set_verbosity
* vlog
* warn
* warning
* losses
* Overview
* Reduction
* absolute_difference
* add_loss
* compute_weighted_loss
* cosine_distance
* get_losses
* get_regularization_loss
* get_regularization_losses
* get_total_loss
* hinge_loss
* huber_loss
* log_loss
* mean_pairwise_squared_error
* mean_squared_error
* sigmoid_cross_entropy
* softmax_cross_entropy
* sparse_softmax_cross_entropy
* math
* Overview
* abs
* acos
* acosh
* add
* angle
* asin
* asinh
* atan
* atanh
* bessel_i0
* bessel_i0e
* bessel_i1
* bessel_i1e
* ceil
* conj
* cos
* cosh
* digamma
* divide
* divide_no_nan
* erf
* erfc
* erfcinv
* erfinv
* exp
* expm1
* floor
* floormod
* imag
* in_top_k
* lgamma
* log
* log1p
* log_sigmoid
* log_softmax
* maximum
* minimum
* multiply
* multiply_no_nan
* ndtri
* negative
* real
* reciprocal
* reciprocal_no_nan
* reduce_euclidean_norm
* reduce_max
* reduce_mean
* reduce_min
* reduce_prod
* reduce_std
* reduce_sum
* reduce_variance
* rint
* round
* rsqrt
* scalar_mul
* sigmoid
* sign
* sin
* sinh
* softmax
* softplus
* sqrt
* square
* tan
* tanh
* special
* Overview
* bessel_j0
* bessel_j1
* bessel_k0
* bessel_k0e
* bessel_k1
* bessel_k1e
* bessel_y0
* bessel_y1
* dawsn
* expint
* fresnel_cos
* fresnel_sin
* spence
* metrics
* Overview
* accuracy
* auc
* average_precision_at_k
* false_negatives
* false_negatives_at_thresholds
* false_positives
* false_positives_at_thresholds
* mean
* mean_absolute_error
* mean_cosine_distance
* mean_iou
* mean_per_class_accuracy
* mean_relative_error
* mean_squared_error
* mean_tensor
* percentage_below
* precision
* precision_at_k
* precision_at_thresholds
* precision_at_top_k
* recall
* recall_at_k
* recall_at_thresholds
* recall_at_top_k
* root_mean_squared_error
* sensitivity_at_specificity
* sparse_average_precision_at_k
* sparse_precision_at_k
* specificity_at_sensitivity
* true_negatives
* true_negatives_at_thresholds
* true_positives
* true_positives_at_thresholds
* mixed_precision
* Overview
* DynamicLossScale
* FixedLossScale
* LossScale
* MixedPrecisionLossScaleOptimizer
* disable_mixed_precision_graph_rewrite
* enable_mixed_precision_graph_rewrite
* nn
* Overview
* avg_pool
* batch_norm_with_global_normalization
* bidirectional_dynamic_rnn
* conv1d
* conv2d
* conv2d_backprop_filter
* conv2d_backprop_input
* conv2d_transpose
* conv3d
* conv3d_backprop_filter
* conv3d_transpose
* convolution
* crelu
* ctc_beam_search_decoder
* ctc_loss
* ctc_loss_v2
* depth_to_space
* depthwise_conv2d
* depthwise_conv2d_native
* dilation2d
* dropout
* dynamic_rnn
* embedding_lookup
* embedding_lookup_sparse
* erosion2d
* fractional_avg_pool
* fractional_max_pool
* fused_batch_norm
* leaky_relu
* max_pool
* max_pool_with_argmax
* moments
* nce_loss
* pool
* quantized_avg_pool
* quantized_conv2d
* quantized_max_pool
* quantized_relu_x
* raw_rnn
* relu6
* relu_layer
* safe_embedding_lookup_sparse
* sampled_softmax_loss
* separable_conv2d
* sigmoid_cross_entropy_with_logits
* silu
* softmax_cross_entropy_with_logits
* softmax_cross_entropy_with_logits_v2
* space_to_depth
* sparse_softmax_cross_entropy_with_logits
* static_bidirectional_rnn
* static_rnn
* static_state_saving_rnn
* sufficient_statistics
* weighted_cross_entropy_with_logits
* weighted_moments
* xw_plus_b
* profiler
* Overview
* AdviceProto
* AdviceProto.Checker
* AdviceProto.CheckersEntry
* GraphNodeProto
* GraphNodeProto.InputShapesEntry
* MultiGraphNodeProto
* OpLogProto
* OpLogProto.IdToStringEntry
* ProfileOptionBuilder
* Profiler
* advise
* profile
* write_op_log
* saved_model
* Overview
* Builder
* build_signature_def
* build_tensor_info
* classification_signature_def
* contains_saved_model
* get_tensor_from_tensor_info
* is_valid_signature
* load
* main_op_with_restore
* predict_signature_def
* regression_signature_def
* simple_save
* summary
* Overview
* FileWriter
* FileWriterCache
* SummaryDescription
* TaggedRunMetadata
* all_v2_summary_ops
* audio
* get_summary_description
* histogram
* image
* initialize
* merge
* merge_all
* scalar
* tensor_summary
* text
* test
* Overview
* StubOutForTesting
* assert_equal_graph_def
* compute_gradient
* compute_gradient_error
* get_temp_dir
* test_src_dir_path
* tpu
* Overview
* CrossShardOptimizer
* PaddingSpec
* batch_parallel
* bfloat16_scope
* core
* cross_replica_sum
* initialize_system
* outside_compilation
* replicate
* rewrite
* shard
* shutdown_system
* train
* Overview
* AdadeltaOptimizer
* AdagradDAOptimizer
* AdagradOptimizer
* AdamOptimizer
* Checkpoint
* CheckpointSaverHook
* CheckpointSaverListener
* ChiefSessionCreator
* FeedFnHook
* FinalOpsHook
* FtrlOptimizer
* GlobalStepWaiterHook
* GradientDescentOptimizer
* LoggingTensorHook
* LooperThread
* MomentumOptimizer
* MonitoredSession
* MonitoredSession.StepContext
* MonitoredTrainingSession
* NanLossDuringTrainingError
* NanTensorHook
* NewCheckpointReader
* Optimizer
* ProfilerHook
* ProximalAdagradOptimizer
* ProximalGradientDescentOptimizer
* QueueRunner
* RMSPropOptimizer
* Saver
* SaverDef
* Scaffold
* SecondOrStepTimer
* SessionCreator
* SessionManager
* SessionRunArgs
* SessionRunContext
* SessionRunHook
* SessionRunValues
* SingularMonitoredSession
* StepCounterHook
* StopAtStepHook
* SummarySaverHook
* Supervisor
* SyncReplicasOptimizer
* VocabInfo
* WorkerSessionCreator
* add_queue_runner
* assert_global_step
* basic_train_loop
* batch
* batch_join
* checkpoint_exists
* cosine_decay
* cosine_decay_restarts
* create_global_step
* do_quantize_training_on_graphdef
* exponential_decay
* export_meta_graph
* generate_checkpoint_state_proto
* get_checkpoint_mtimes
* get_global_step
* get_or_create_global_step
* global_step
* import_meta_graph
* init_from_checkpoint
* input_producer
* inverse_time_decay
* limit_epochs
* linear_cosine_decay
* maybe_batch
* maybe_batch_join
* maybe_shuffle_batch
* maybe_shuffle_batch_join
* natural_exp_decay
* noisy_linear_cosine_decay
* piecewise_constant
* polynomial_decay
* range_input_producer
* remove_checkpoint
* replica_device_setter
* sdca_fprint
* sdca_optimizer
* sdca_shrink_l1
* shuffle_batch
* shuffle_batch_join
* slice_input_producer
* start_queue_runners
* string_input_producer
* summary_iterator
* update_checkpoint_state
* warm_start
tf.config
- Overview
- LogicalDevice
- LogicalDeviceConfiguration
- PhysicalDevice
- experimental_connect_to_cluster
- experimental_connect_to_host
- experimental_functions_run_eagerly
- experimental_run_functions_eagerly
- functions_run_eagerly
- get_logical_device_configuration
- get_soft_device_placement
- get_visible_devices
- list_logical_devices
- list_physical_devices
- run_functions_eagerly
- set_logical_device_configuration
- set_soft_device_placement
- set_visible_devices
- experimental
* Overview
* ClusterDeviceFilters
* disable_mlir_bridge
* enable_mlir_bridge
* enable_op_determinism
* enable_tensor_float_32_execution
* get_device_details
* get_device_policy
* get_memory_growth
* get_memory_info
* get_memory_usage
* get_synchronous_execution
* reset_memory_stats
* set_device_policy
* set_memory_growth
* set_synchronous_execution
* tensor_float_32_execution_enabled - threading
* Overview
* get_inter_op_parallelism_threads
* get_intra_op_parallelism_threads
* set_inter_op_parallelism_threads
* set_intra_op_parallelism_threads
tf.data
- Overview
- Dataset
- DatasetSpec
- FixedLengthRecordDataset
- Iterator
- IteratorSpec
- NumpyIterator
- Options
- TFRecordDataset
- TextLineDataset
- ThreadingOptions
- experimental
* Overview
* AutoShardPolicy
* AutotuneAlgorithm
* AutotuneOptions
* Counter
* CsvDataset
* DatasetInitializer
* DistributeOptions
* ExternalStatePolicy
* OptimizationOptions
* RandomDataset
* Reducer
* SqlDataset
* TFRecordWriter
* assert_cardinality
* at
* bucket_by_sequence_length
* cardinality
* choose_from_datasets
* copy_to_device
* dense_to_ragged_batch
* dense_to_sparse_batch
* enable_debug_mode
* enumerate_dataset
* from_list
* from_variant
* get_next_as_optional
* get_single_element
* get_structure
* group_by_reducer
* group_by_window
* ignore_errors
* index_table_from_dataset
* load
* make_batched_features_dataset
* make_csv_dataset
* make_saveable_from_iterator
* map_and_batch
* pad_to_cardinality
* parallel_interleave
* parse_example_dataset
* prefetch_to_device
* rejection_resample
* sample_from_datasets
* save
* scan
* shuffle_and_repeat
* snapshot
* table_from_dataset
* take_while
* to_variant
* unbatch
* unique
* service
* Overview
* CrossTrainerCache
* DispatchServer
* DispatcherConfig
* ShardingPolicy
* WorkerConfig
* WorkerServer
* distribute
* from_dataset_id
* register_dataset
tf.debugging
- Overview
- Assert
- assert_all_finite
- assert_equal
- assert_greater
- assert_greater_equal
- assert_integer
- assert_less
- assert_less_equal
- assert_near
- assert_negative
- assert_non_negative
- assert_non_positive
- assert_none_equal
- assert_positive
- assert_proper_iterable
- assert_rank
- assert_rank_at_least
- assert_rank_in
- assert_same_float_dtype
- assert_scalar
- assert_shapes
- assert_type
- check_numerics
- disable_check_numerics
- disable_traceback_filtering
- enable_check_numerics
- enable_traceback_filtering
- get_log_device_placement
- is_numeric_tensor
- is_traceback_filtering_enabled
- set_log_device_placement
tf.distribute
- Overview
- CrossDeviceOps
- DistributedDataset
- DistributedIterator
- DistributedValues
- HierarchicalCopyAllReduce
- InputContext
- InputOptions
- InputReplicationMode
- MirroredStrategy
- MultiWorkerMirroredStrategy
- NcclAllReduce
- OneDeviceStrategy
- ReduceOp
- ReductionToOneDevice
- ReplicaContext
- RunOptions
- Server
- Strategy
- StrategyExtended
- TPUStrategy
- experimental_set_strategy
- get_replica_context
- get_strategy
- has_strategy
- in_cross_replica_context
- cluster_resolver
* Overview
* ClusterResolver
* GCEClusterResolver
* KubernetesClusterResolver
* SimpleClusterResolver
* SlurmClusterResolver
* TFConfigClusterResolver
* TPUClusterResolver
* UnionResolver - experimental
* Overview
* CentralStorageStrategy
* CollectiveHints
* CommunicationImplementation
* CommunicationOptions
* MultiWorkerMirroredStrategy
* ParameterServerStrategy
* PreemptionCheckpointHandler
* PreemptionWatcher
* TPUStrategy
* TerminationConfig
* ValueContext
tf.errors
- Overview
- AbortedError
- AlreadyExistsError
- CancelledError
- DataLossError
- DeadlineExceededError
- FailedPreconditionError
- InternalError
- InvalidArgumentError
- NotFoundError
- OpError
- OperatorNotAllowedInGraphError
- OutOfRangeError
- PermissionDeniedError
- ResourceExhaustedError
- UnauthenticatedError
- UnavailableError
- UnimplementedError
- UnknownError
tf.experimental
- Overview
- BatchableExtensionType
- DynamicRaggedShape
- DynamicRaggedShape.Spec
- ExtensionType
- ExtensionTypeBatchEncoder
- ExtensionTypeSpec
- Optional
- RowPartition
- StructuredTensor
- StructuredTensor.Spec
- async_clear_error
- async_scope
- dispatch_for_api
- dispatch_for_binary_elementwise_apis
- dispatch_for_binary_elementwise_assert_apis
- dispatch_for_unary_elementwise_apis
- enable_strict_mode
- function_executor_type
- register_filesystem_plugin
- unregister_dispatch_for
- dtensor
* Overview
* DTensorCheckpoint
* DTensorDataset
* DVariable
* Layout
* Mesh
* barrier
* call_with_layout
* check_layout
* client_id
* copy_to_mesh
* create_distributed_mesh
* create_mesh
* create_tpu_mesh
* default_mesh
* device_name
* enable_save_as_bf16
* fetch_layout
* full_job_name
* get_default_mesh
* heartbeat_enabled
* initialize_accelerator_system
* is_dtensor
* job_name
* jobs
* local_devices
* name_based_restore
* name_based_save
* num_clients
* num_global_devices
* num_local_devices
* pack
* preferred_device_type
* relayout
* relayout_like
* run_on
* sharded_save
* shutdown_accelerator_system
* unpack - numpy
* Overview
* abs
* absolute
* add
* all
* allclose
* amax
* amin
* angle
* any
* append
* arange
* arccos
* arccosh
* arcsin
* arcsinh
* arctan
* arctan2
* arctanh
* argmax
* argmin
* argsort
* around
* array
* array_equal
* asanyarray
* asarray
* ascontiguousarray
* atleast_1d
* atleast_2d
* atleast_3d
* average
* bitwise_and
* bitwise_not
* bitwise_or
* bitwise_xor
* bool_
* broadcast_arrays
* broadcast_to
* cbrt
* ceil
* clip
* complex128
* complex64
* compress
* concatenate
* conj
* conjugate
* copy
* cos
* cosh
* count_nonzero
* cross
* cumprod
* cumsum
* deg2rad
* diag
* diag_indices
* diagflat
* diagonal
* diff
* divide
* divmod
* dot
* dsplit
* dstack
* einsum
* empty
* empty_like
* equal
* exp
* exp2
* expand_dims
* experimental_enable_numpy_behavior
* expm1
* eye
* fabs
* finfo
* fix
* flatten
* flip
* fliplr
* flipud
* float16
* float32
* float64
* float_power
* floor
* floor_divide
* full
* full_like
* gcd
* geomspace
* greater
* greater_equal
* heaviside
* hsplit
* hstack
* hypot
* identity
* iinfo
* imag
* inexact
* inner
* int16
* int32
* int64
* int8
* isclose
* iscomplex
* iscomplexobj
* isfinite
* isinf
* isnan
* isneginf
* isposinf
* isreal
* isrealobj
* isscalar
* issubdtype
* ix_
* kron
* lcm
* less
* less_equal
* linspace
* log
* log10
* log1p
* log2
* logaddexp
* logaddexp2
* logical_and
* logical_not
* logical_or
* logical_xor
* logspace
* matmul
* max
* maximum
* mean
* meshgrid
* min
* minimum
* mod
* moveaxis
* multiply
* nanmean
* nanprod
* nansum
* ndim
* negative
* nextafter
* nonzero
* not_equal
* object_
* ones
* ones_like
* outer
* pad
* polyval
* positive
* power
* prod
* promote_types
* ptp
* rad2deg
* ravel
* real
* reciprocal
* remainder
* repeat
* reshape
* result_type
* roll
* rot90
* round
* select
* shape
* sign
* signbit
* sin
* sinc
* sinh
* size
* sort
* split
* sqrt
* square
* squeeze
* stack
* std
* string_
* subtract
* sum
* swapaxes
* take
* take_along_axis
* tan
* tanh
* tensordot
* tile
* trace
* transpose
* tri
* tril
* triu
* true_divide
* uint16
* uint32
* uint64
* uint8
* unicode_
* vander
* var
* vdot
* vsplit
* vstack
* where
* zeros
* zeros_like
tf.feature_column
- Overview
- bucketized_column
- categorical_column_with_hash_bucket
- categorical_column_with_identity
- categorical_column_with_vocabulary_file
- categorical_column_with_vocabulary_list
- crossed_column
- embedding_column
- indicator_column
- make_parse_example_spec
- numeric_column
- sequence_categorical_column_with_hash_bucket
- sequence_categorical_column_with_identity
- sequence_categorical_column_with_vocabulary_file
- sequence_categorical_column_with_vocabulary_list
- sequence_numeric_column
- shared_embeddings
- weighted_categorical_column
tf.image
- Overview
- ResizeMethod
- adjust_brightness
- adjust_contrast
- adjust_gamma
- adjust_hue
- adjust_jpeg_quality
- adjust_saturation
- central_crop
- combined_non_max_suppression
- convert_image_dtype
- crop_and_resize
- crop_to_bounding_box
- draw_bounding_boxes
- extract_glimpse
- extract_patches
- flip_left_right
- flip_up_down
- generate_bounding_box_proposals
- grayscale_to_rgb
- hsv_to_rgb
- image_gradients
- non_max_suppression
- non_max_suppression_overlaps
- non_max_suppression_padded
- non_max_suppression_with_scores
- pad_to_bounding_box
- per_image_standardization
- psnr
- random_brightness
- random_contrast
- random_crop
- random_flip_left_right
- random_flip_up_down
- random_hue
- random_jpeg_quality
- random_saturation
- resize
- resize_with_crop_or_pad
- resize_with_pad
- rgb_to_grayscale
- rgb_to_hsv
- rgb_to_yiq
- rgb_to_yuv
- rot90
- sample_distorted_bounding_box
- sobel_edges
- ssim
- ssim_multiscale
- stateless_random_brightness
- stateless_random_contrast
- stateless_random_crop
- stateless_random_flip_left_right
- stateless_random_flip_up_down
- stateless_random_hue
- stateless_random_jpeg_quality
- stateless_random_saturation
- stateless_sample_distorted_bounding_box
- total_variation
- transpose
- yiq_to_rgb
- yuv_to_rgb
tf.io
- Overview
- FixedLenFeature
- FixedLenSequenceFeature
- RaggedFeature
- RaggedFeature.RowLengths
- RaggedFeature.RowLimits
- RaggedFeature.RowSplits
- RaggedFeature.RowStarts
- RaggedFeature.UniformRowLength
- RaggedFeature.ValueRowIds
- SparseFeature
- TFRecordOptions
- TFRecordWriter
- VarLenFeature
- decode_and_crop_jpeg
- decode_base64
- decode_bmp
- decode_compressed
- decode_csv
- decode_gif
- decode_image
- decode_jpeg
- decode_json_example
- decode_png
- decode_proto
- decode_raw
- deserialize_many_sparse
- encode_base64
- encode_jpeg
- encode_png
- encode_proto
- extract_jpeg_shape
- is_jpeg
- match_filenames_once
- matching_files
- parse_example
- parse_sequence_example
- parse_single_example
- parse_single_sequence_example
- parse_tensor
- read_file
- serialize_many_sparse
- serialize_sparse
- serialize_tensor
- write_file
- write_graph
- gfile
* Overview
* GFile
* copy
* exists
* get_registered_schemes
* glob
* isdir
* join
* listdir
* makedirs
* mkdir
* remove
* rename
* rmtree
* stat
* walk
tf.keras
- Overview
- DTypePolicy
- FloatDTypePolicy
- Function
- Initializer
- Input
- InputSpec
- KerasTensor
- Layer
- Loss
- Metric
- Model
- Operation
- Optimizer
- Quantizer
- Regularizer
- Sequential
- StatelessScope
- Variable
- device
- name_scope
- version
- activations
* Overview
* deserialize
* elu
* exponential
* gelu
* get
* hard_sigmoid
* hard_silu
* leaky_relu
* linear
* log_softmax
* mish
* relu
* relu6
* selu
* serialize
* sigmoid
* silu
* softmax
* softplus
* softsign
* tanh - applications
* Overview
* ConvNeXtBase
* ConvNeXtLarge
* ConvNeXtSmall
* ConvNeXtTiny
* ConvNeXtXLarge
* DenseNet121
* DenseNet169
* DenseNet201
* EfficientNetB0
* EfficientNetB1
* EfficientNetB2
* EfficientNetB3
* EfficientNetB4
* EfficientNetB5
* EfficientNetB6
* EfficientNetB7
* EfficientNetV2B0
* EfficientNetV2B1
* EfficientNetV2B2
* EfficientNetV2B3
* EfficientNetV2L
* EfficientNetV2M
* EfficientNetV2S
* InceptionResNetV2
* InceptionV3
* MobileNet
* MobileNetV2
* MobileNetV3Large
* MobileNetV3Small
* NASNetLarge
* NASNetMobile
* ResNet101
* ResNet101V2
* ResNet152
* ResNet152V2
* ResNet50
* ResNet50V2
* VGG16
* VGG19
* Xception - backend
* Overview
* abs
* all
* any
* arange
* argmax
* argmin
* backend
* batch_dot
* batch_flatten
* batch_get_value
* batch_normalization
* batch_set_value
* bias_add
* binary_crossentropy
* binary_focal_crossentropy
* cast
* cast_to_floatx
* categorical_crossentropy
* categorical_focal_crossentropy
* clear_session
* clip
* concatenate
* constant
* conv1d
* conv2d
* conv2d_transpose
* conv3d
* cos
* count_params
* ctc_batch_cost
* ctc_decode
* ctc_label_dense_to_sparse
* cumprod
* cumsum
* depthwise_conv2d
* dot
* dropout
* dtype
* elu
* epsilon
* equal
* eval
* exp
* expand_dims
* eye
* flatten
* floatx
* foldl
* foldr
* gather
* get_uid
* get_value
* gradients
* greater
* greater_equal
* hard_sigmoid
* image_data_format
* in_top_k
* int_shape
* is_float_dtype
* is_int_dtype
* is_keras_tensor
* is_sparse
* l2_normalize
* less
* less_equal
* log
* map_fn
* max
* maximum
* mean
* min
* minimum
* moving_average_update
* name_scope
* ndim
* not_equal
* one_hot
* ones
* ones_like
* permute_dimensions
* pool2d
* pool3d
* pow
* prod
* random_bernoulli
* random_normal
* random_normal_variable
* random_uniform
* random_uniform_variable
* relu
* repeat
* repeat_elements
* reshape
* resize_images
* resize_volumes
* result_type
* reverse
* rnn
* round
* separable_conv2d
* set_epsilon
* set_floatx
* set_image_data_format
* set_value
* shape
* sigmoid
* sign
* sin
* softmax
* softplus
* softsign
* sparse_categorical_crossentropy
* spatial_2d_padding
* spatial_3d_padding
* sqrt
* square
* squeeze
* stack
* standardize_dtype
* std
* stop_gradient
* sum
* switch
* tanh
* temporal_padding
* tile
* to_dense
* transpose
* truncated_normal
* update
* update_add
* update_sub
* var
* variable
* zeros
* zeros_like - callbacks
* Overview
* BackupAndRestore
* CSVLogger
* Callback
* CallbackList
* EarlyStopping
* History
* LambdaCallback
* LearningRateScheduler
* ModelCheckpoint
* ProgbarLogger
* ReduceLROnPlateau
* RemoteMonitor
* SwapEMAWeights
* TensorBoard
* TerminateOnNaN - config
* Overview
* disable_interactive_logging
* disable_traceback_filtering
* dtype_policy
* enable_interactive_logging
* enable_traceback_filtering
* enable_unsafe_deserialization
* is_interactive_logging_enabled
* is_traceback_filtering_enabled
* set_backend
* set_dtype_policy - distribution
* Overview
* DataParallel
* DeviceMesh
* LayoutMap
* ModelParallel
* TensorLayout
* distribute_tensor
* distribution
* initialize
* list_devices
* set_distribution - initializers
* Overview
* Constant
* GlorotNormal
* GlorotUniform
* HeNormal
* HeUniform
* Identity
* LecunNormal
* LecunUniform
* Ones
* Orthogonal
* RandomNormal
* RandomUniform
* TruncatedNormal
* VarianceScaling
* Zeros
* deserialize
* get
* serialize - layers
* Overview
* Activation
* ActivityRegularization
* Add
* AdditiveAttention
* AlphaDropout
* Attention
* Average
* AveragePooling1D
* AveragePooling2D
* AveragePooling3D
* BatchNormalization
* Bidirectional
* CategoryEncoding
* CenterCrop
* Concatenate
* Conv1D
* Conv1DTranspose
* Conv2D
* Conv2DTranspose
* Conv3D
* Conv3DTranspose
* ConvLSTM1D
* ConvLSTM2D
* ConvLSTM3D
* Cropping1D
* Cropping2D
* Cropping3D
* Dense
* DepthwiseConv1D
* DepthwiseConv2D
* Discretization
* Dot
* Dropout
* ELU
* EinsumDense
* Embedding
* Flatten
* FlaxLayer
* GRU
* GRUCell
* GaussianDropout
* GaussianNoise
* GlobalAveragePooling1D
* GlobalAveragePooling2D
* GlobalAveragePooling3D
* GlobalMaxPool1D
* GlobalMaxPool2D
* GlobalMaxPool3D
* GroupNormalization
* GroupQueryAttention
* HashedCrossing
* Hashing
* Identity
* InputLayer
* IntegerLookup
* JaxLayer
* LSTM
* LSTMCell
* Lambda
* LayerNormalization
* LeakyReLU
* Masking
* MaxPool1D
* MaxPool2D
* MaxPool3D
* Maximum
* MelSpectrogram
* Minimum
* MultiHeadAttention
* Multiply
* Normalization
* PReLU
* Permute
* RNN
* RandomBrightness
* RandomContrast
* RandomCrop
* RandomFlip
* RandomHeight
* RandomRotation
* RandomTranslation
* RandomWidth
* RandomZoom
* ReLU
* RepeatVector
* Rescaling
* Reshape
* Resizing
* SeparableConv1D
* SeparableConv2D
* SimpleRNN
* SimpleRNNCell
* Softmax
* SpatialDropout1D
* SpatialDropout2D
* SpatialDropout3D
* SpectralNormalization
* StackedRNNCells
* StringLookup
* Subtract
* TFSMLayer
* TextVectorization
* ThresholdedReLU
* TimeDistributed
* TorchModuleWrapper
* UnitNormalization
* UpSampling1D
* UpSampling2D
* UpSampling3D
* Wrapper
* ZeroPadding1D
* ZeroPadding2D
* ZeroPadding3D
* add
* average
* concatenate
* deserialize
* dot
* maximum
* minimum
* multiply
* serialize
* subtract - losses
* Overview
* BinaryCrossentropy
* BinaryFocalCrossentropy
* CTC
* CategoricalCrossentropy
* CategoricalFocalCrossentropy
* CategoricalHinge
* CosineSimilarity
* Dice
* Hinge
* Huber
* KLD
* KLDivergence
* LogCosh
* MAE
* MAPE
* MSE
* MSLE
* MeanAbsoluteError
* MeanAbsolutePercentageError
* MeanSquaredError
* MeanSquaredLogarithmicError
* Poisson
* Reduction
* SparseCategoricalCrossentropy
* SquaredHinge
* Tversky
* binary_crossentropy
* binary_focal_crossentropy
* categorical_crossentropy
* categorical_focal_crossentropy
* categorical_hinge
* cosine_similarity
* ctc
* deserialize
* dice
* get
* hinge
* huber
* logcosh
* poisson
* serialize
* sparse_categorical_crossentropy
* squared_hinge
* tversky - metrics
* Overview
* AUC
* Accuracy
* BinaryAccuracy
* BinaryCrossentropy
* BinaryIoU
* CategoricalAccuracy
* CategoricalCrossentropy
* CategoricalHinge
* CosineSimilarity
* F1Score
* FBetaScore
* FalseNegatives
* FalsePositives
* Hinge
* IoU
* KLDivergence
* LogCoshError
* Mean
* MeanAbsoluteError
* MeanAbsolutePercentageError
* MeanIoU
* MeanMetricWrapper
* MeanSquaredError
* MeanSquaredLogarithmicError
* OneHotIoU
* OneHotMeanIoU
* Poisson
* Precision
* PrecisionAtRecall
* R2Score
* Recall
* RecallAtPrecision
* RootMeanSquaredError
* SensitivityAtSpecificity
* SparseCategoricalAccuracy
* SparseCategoricalCrossentropy
* SparseTopKCategoricalAccuracy
* SpecificityAtSensitivity
* SquaredHinge
* Sum
* TopKCategoricalAccuracy
* TrueNegatives
* TruePositives
* binary_accuracy
* categorical_accuracy
* deserialize
* get
* serialize
* sparse_categorical_accuracy
* sparse_top_k_categorical_accuracy
* top_k_categorical_accuracy - ops
* Overview
* abs
* absolute
* add
* all
* amax
* amin
* any
* append
* arange
* arccos
* arccosh
* arcsin
* arcsinh
* arctan
* arctan2
* arctanh
* argmax
* argmin
* argsort
* array
* average
* average_pool
* batch_normalization
* binary_crossentropy
* bincount
* broadcast_to
* cast
* categorical_crossentropy
* ceil
* cholesky
* clip
* concatenate
* cond
* conj
* conjugate
* conv
* conv_transpose
* convert_to_numpy
* convert_to_tensor
* copy
* correlate
* cos
* cosh
* count_nonzero
* cross
* ctc_decode
* ctc_loss
* cumprod
* cumsum
* custom_gradient
* depthwise_conv
* det
* diag
* diagonal
* diff
* digitize
* divide
* divide_no_nan
* dot
* eig
* eigh
* einsum
* elu
* empty
* equal
* erf
* erfinv
* exp
* expand_dims
* expm1
* extract_sequences
* eye
* fft
* fft2
* flip
* floor
* floor_divide
* fori_loop
* full
* full_like
* gelu
* get_item
* greater
* greater_equal
* hard_sigmoid
* hard_silu
* hstack
* identity
* imag
* in_top_k
* inv
* irfft
* is_tensor
* isclose
* isfinite
* isinf
* isnan
* istft
* leaky_relu
* less
* less_equal
* linspace
* log
* log10
* log1p
* log2
* log_sigmoid
* log_softmax
* logaddexp
* logical_and
* logical_not
* logical_or
* logical_xor
* logspace
* logsumexp
* lu_factor
* matmul
* max
* max_pool
* maximum
* mean
* median
* meshgrid
* min
* minimum
* mod
* moments
* moveaxis
* multi_hot
* multiply
* nan_to_num
* ndim
* negative
* nonzero
* norm
* normalize
* not_equal
* one_hot
* ones
* ones_like
* outer
* pad
* power
* prod
* psnr
* qr
* quantile
* ravel
* real
* reciprocal
* relu
* relu6
* repeat
* reshape
* rfft
* roll
* round
* rsqrt
* scatter
* scatter_update
* segment_max
* segment_sum
* select
* selu
* separable_conv
* shape
* sigmoid
* sign
* silu
* sin
* sinh
* size
* slice
* slice_update
* slogdet
* softmax
* softplus
* softsign
* solve
* solve_triangular
* sort
* sparse_categorical_crossentropy
* split
* sqrt
* square
* squeeze
* stack
* std
* stft
* stop_gradient
* subtract
* sum
* svd
* swapaxes
* take
* take_along_axis
* tan
* tanh
* tensordot
* tile
* top_k
* trace
* transpose
* tri
* tril
* triu
* true_divide
* unstack
* var
* vdot
* vectorize
* vectorized_map
* vstack
* where
* while_loop
* zeros
* zeros_like
* image
* Overview
* affine_transform
* crop_images
* extract_patches
* map_coordinates
* pad_images
* resize
* rgb_to_grayscale - optimizers
* Overview
* Adadelta
* Adafactor
* Adagrad
* Adam
* AdamW
* Adamax
* Ftrl
* Lion
* Nadam
* RMSprop
* SGD
* deserialize
* get
* serialize
* schedules
* Overview
* CosineDecay
* CosineDecayRestarts
* ExponentialDecay
* InverseTimeDecay
* LearningRateSchedule
* PiecewiseConstantDecay
* PolynomialDecay
* deserialize
* serialize - preprocessing
* Overview
* image_dataset_from_directory
* text_dataset_from_directory
* timeseries_dataset_from_array
* image
* Overview
* DirectoryIterator
* ImageDataGenerator
* Iterator
* NumpyArrayIterator
* apply_affine_transform
* apply_brightness_shift
* apply_channel_shift
* random_brightness
* random_channel_shift
* random_rotation
* random_shear
* random_shift
* random_zoom
* smart_resize
* text
* Overview
* Tokenizer
* hashing_trick
* one_hot
* text_to_word_sequence
* tokenizer_from_json - quantizers
* Overview
* AbsMaxQuantizer
* abs_max_quantize
* compute_float8_amax_history
* compute_float8_scale
* deserialize
* get
* quantize_and_dequantize
* serialize - random
* Overview
* SeedGenerator
* beta
* binomial
* categorical
* dropout
* gamma
* normal
* randint
* shuffle
* truncated_normal
* uniform - tree
* Overview
* assert_same_structure
* flatten
* is_nested
* lists_to_tuples
* map_shape_structure
* map_structure
* map_structure_up_to
* pack_sequence_as
* traverse - utils
* Overview
* CustomObjectScope
* FeatureSpace
* Progbar
* PyDataset
* array_to_img
* audio_dataset_from_directory
* deserialize_keras_object
* get_custom_objects
* get_file
* get_registered_name
* get_registered_object
* get_source_inputs
* img_to_array
* load_img
* model_to_dot
* normalize
* pack_x_y_sample_weight
* pad_sequences
* plot_model
* register_keras_serializable
* save_img
* serialize_keras_object
* set_random_seed
* split_dataset
* to_categorical
* unpack_x_y_sample_weight
tf.linalg
- Overview
- LinearOperator
- LinearOperatorAdjoint
- LinearOperatorBlockDiag
- LinearOperatorBlockLowerTriangular
- LinearOperatorCirculant
- LinearOperatorCirculant2D
- LinearOperatorCirculant3D
- LinearOperatorComposition
- LinearOperatorDiag
- LinearOperatorFullMatrix
- LinearOperatorHouseholder
- LinearOperatorIdentity
- LinearOperatorInversion
- LinearOperatorKronecker
- LinearOperatorLowRankUpdate
- LinearOperatorLowerTriangular
- LinearOperatorPermutation
- LinearOperatorScaledIdentity
- LinearOperatorToeplitz
- LinearOperatorTridiag
- LinearOperatorZeros
- adjoint
- band_part
- banded_triangular_solve
- cholesky
- cholesky_solve
- cross
- det
- diag
- diag_part
- eig
- eigh
- eigh_tridiagonal
- eigvals
- eigvalsh
- expm
- global_norm
- inv
- logdet
- logm
- lstsq
- lu
- lu_matrix_inverse
- lu_reconstruct
- lu_solve
- matmul
- matrix_rank
- matrix_transpose
- matvec
- normalize
- pinv
- qr
- set_diag
- slogdet
- solve
- sqrtm
- svd
- tensor_diag
- tensor_diag_part
- trace
- triangular_solve
- tridiagonal_matmul
- tridiagonal_solve
tf.lite
tf.lookup
tf.math
- Overview
- abs
- accumulate_n
- acos
- acosh
- add
- add_n
- angle
- approx_max_k
- approx_min_k
- argmax
- argmin
- asin
- asinh
- atan
- atan2
- atanh
- bessel_i0
- bessel_i0e
- bessel_i1
- bessel_i1e
- betainc
- bincount
- ceil
- confusion_matrix
- conj
- cos
- cosh
- count_nonzero
- cumprod
- cumsum
- cumulative_logsumexp
- digamma
- divide
- divide_no_nan
- equal
- erf
- erfc
- erfcinv
- erfinv
- exp
- expm1
- floor
- floordiv
- floormod
- greater
- greater_equal
- igamma
- igammac
- imag
- in_top_k
- invert_permutation
- is_finite
- is_inf
- is_nan
- is_non_decreasing
- is_strictly_increasing
- l2_normalize
- lbeta
- less
- less_equal
- lgamma
- log
- log1p
- log_sigmoid
- logical_and
- logical_not
- logical_or
- logical_xor
- maximum
- minimum
- multiply
- multiply_no_nan
- ndtri
- negative
- nextafter
- not_equal
- polygamma
- polyval
- pow
- real
- reciprocal
- reciprocal_no_nan
- reduce_all
- reduce_any
- reduce_euclidean_norm
- reduce_logsumexp
- reduce_max
- reduce_mean
- reduce_min
- reduce_prod
- reduce_std
- reduce_sum
- reduce_variance
- rint
- round
- rsqrt
- scalar_mul
- segment_max
- segment_mean
- segment_min
- segment_prod
- segment_sum
- sigmoid
- sign
- sin
- sinh
- sobol_sample
- softplus
- sqrt
- square
- squared_difference
- subtract
- tan
- tanh
- top_k
- truediv
- unsorted_segment_max
- unsorted_segment_mean
- unsorted_segment_min
- unsorted_segment_prod
- unsorted_segment_sqrt_n
- unsorted_segment_sum
- xdivy
- xlog1py
- xlogy
- zero_fraction
- zeta
- special
* Overview
* bessel_j0
* bessel_j1
* bessel_k0
* bessel_k0e
* bessel_k1
* bessel_k1e
* bessel_y0
* bessel_y1
* dawsn
* expint
* fresnel_cos
* fresnel_sin
* spence
tf.mlir
tf.nest
tf.nn
- Overview
- RNNCellDeviceWrapper
- RNNCellDropoutWrapper
- RNNCellResidualWrapper
- atrous_conv2d
- atrous_conv2d_transpose
- avg_pool
- avg_pool1d
- avg_pool2d
- avg_pool3d
- batch_norm_with_global_normalization
- batch_normalization
- bias_add
- collapse_repeated
- compute_accidental_hits
- compute_average_loss
- conv1d
- conv1d_transpose
- conv2d
- conv2d_transpose
- conv3d
- conv3d_transpose
- conv_transpose
- convolution
- crelu
- ctc_beam_search_decoder
- ctc_greedy_decoder
- ctc_loss
- ctc_unique_labels
- depth_to_space
- depthwise_conv2d
- depthwise_conv2d_backprop_filter
- depthwise_conv2d_backprop_input
- dilation2d
- dropout
- elu
- embedding_lookup
- embedding_lookup_sparse
- erosion2d
- fractional_avg_pool
- fractional_max_pool
- gelu
- isotonic_regression
- l2_loss
- leaky_relu
- local_response_normalization
- log_poisson_loss
- log_softmax
- max_pool
- max_pool1d
- max_pool2d
- max_pool3d
- max_pool_with_argmax
- moments
- nce_loss
- normalize_moments
- pool
- relu
- relu6
- safe_embedding_lookup_sparse
- sampled_softmax_loss
- scale_regularization_loss
- selu
- separable_conv2d
- sigmoid_cross_entropy_with_logits
- silu
- softmax
- softmax_cross_entropy_with_logits
- softsign
- space_to_depth
- sparse_softmax_cross_entropy_with_logits
- sufficient_statistics
- weighted_cross_entropy_with_logits
- weighted_moments
- with_space_to_batch
tf.quantization
- Overview
- dequantize
- fake_quant_with_min_max_args
- fake_quant_with_min_max_args_gradient
- fake_quant_with_min_max_vars
- fake_quant_with_min_max_vars_gradient
- fake_quant_with_min_max_vars_per_channel
- fake_quant_with_min_max_vars_per_channel_gradient
- quantize
- quantize_and_dequantize
- quantize_and_dequantize_v2
- quantized_concat
- experimental
* Overview
* QuantizationComponentSpec
* QuantizationMethod
* QuantizationOptions
* QuantizationOptions.RepresentativeDatasetsEntry
* TfRecordRepresentativeDatasetSaver
* UnitWiseQuantizationSpec
* UnitWiseQuantizationSpec.QuantizationUnit
* quantize_saved_model
tf.ragged
tf.random
- Overview
- Algorithm
- Generator
- all_candidate_sampler
- categorical
- create_rng_state
- fixed_unigram_candidate_sampler
- fold_in
- gamma
- get_global_generator
- learned_unigram_candidate_sampler
- log_uniform_candidate_sampler
- normal
- poisson
- set_global_generator
- set_seed
- shuffle
- split
- stateless_binomial
- stateless_categorical
- stateless_gamma
- stateless_normal
- stateless_parameterized_truncated_normal
- stateless_poisson
- stateless_truncated_normal
- stateless_uniform
- truncated_normal
- uniform
- uniform_candidate_sampler
tf.raw_ops
- Overview
- Abort
- Abs
- AccumulateNV2
- AccumulatorApplyGradient
- AccumulatorNumAccumulated
- AccumulatorSetGlobalStep
- AccumulatorTakeGradient
- Acos
- Acosh
- Add
- AddManySparseToTensorsMap
- AddN
- AddSparseToTensorsMap
- AddV2
- AdjustContrast
- AdjustContrastv2
- AdjustHue
- AdjustSaturation
- All
- AllCandidateSampler
- AllToAll
- Angle
- AnonymousHashTable
- AnonymousIterator
- AnonymousIteratorV2
- AnonymousIteratorV3
- AnonymousMemoryCache
- AnonymousMultiDeviceIterator
- AnonymousMultiDeviceIteratorV3
- AnonymousMutableDenseHashTable
- AnonymousMutableHashTable
- AnonymousMutableHashTableOfTensors
- AnonymousRandomSeedGenerator
- AnonymousSeedGenerator
- Any
- ApplyAdaMax
- ApplyAdadelta
- ApplyAdagrad
- ApplyAdagradDA
- ApplyAdagradV2
- ApplyAdam
- ApplyAddSign
- ApplyCenteredRMSProp
- ApplyFtrl
- ApplyFtrlV2
- ApplyGradientDescent
- ApplyMomentum
- ApplyPowerSign
- ApplyProximalAdagrad
- ApplyProximalGradientDescent
- ApplyRMSProp
- ApproxTopK
- ApproximateEqual
- ArgMax
- ArgMin
- AsString
- Asin
- Asinh
- Assert
- AssertCardinalityDataset
- AssertNextDataset
- AssertPrevDataset
- Assign
- AssignAdd
- AssignAddVariableOp
- AssignSub
- AssignSubVariableOp
- AssignVariableOp
- AssignVariableXlaConcatND
- Atan
- Atan2
- Atanh
- AudioSpectrogram
- AudioSummary
- AudioSummaryV2
- AutoShardDataset
- AvgPool
- AvgPool3D
- AvgPool3DGrad
- AvgPoolGrad
- BandedTriangularSolve
- Barrier
- BarrierClose
- BarrierIncompleteSize
- BarrierInsertMany
- BarrierReadySize
- BarrierTakeMany
- Batch
- BatchCholesky
- BatchCholeskyGrad
- BatchDataset
- BatchDatasetV2
- BatchFFT
- BatchFFT2D
- BatchFFT3D
- BatchFunction
- BatchIFFT
- BatchIFFT2D
- BatchIFFT3D
- BatchMatMul
- BatchMatMulV2
- BatchMatMulV3
- BatchMatrixBandPart
- BatchMatrixDeterminant
- BatchMatrixDiag
- BatchMatrixDiagPart
- BatchMatrixInverse
- BatchMatrixSetDiag
- BatchMatrixSolve
- BatchMatrixSolveLs
- BatchMatrixTriangularSolve
- BatchNormWithGlobalNormalization
- BatchNormWithGlobalNormalizationGrad
- BatchSelfAdjointEig
- BatchSelfAdjointEigV2
- BatchSvd
- BatchToSpace
- BatchToSpaceND
- BesselI0
- BesselI0e
- BesselI1
- BesselI1e
- BesselJ0
- BesselJ1
- BesselK0
- BesselK0e
- BesselK1
- BesselK1e
- BesselY0
- BesselY1
- Betainc
- BiasAdd
- BiasAddGrad
- BiasAddV1
- Bincount
- Bitcast
- BitwiseAnd
- BitwiseOr
- BitwiseXor
- BlockLSTM
- BlockLSTMGrad
- BlockLSTMGradV2
- BlockLSTMV2
- BoostedTreesAggregateStats
- BoostedTreesBucketize
- BoostedTreesCalculateBestFeatureSplit
- BoostedTreesCalculateBestFeatureSplitV2
- BoostedTreesCalculateBestGainsPerFeature
- BoostedTreesCenterBias
- BoostedTreesCreateEnsemble
- BoostedTreesCreateQuantileStreamResource
- BoostedTreesDeserializeEnsemble
- BoostedTreesEnsembleResourceHandleOp
- BoostedTreesExampleDebugOutputs
- BoostedTreesFlushQuantileSummaries
- BoostedTreesGetEnsembleStates
- BoostedTreesMakeQuantileSummaries
- BoostedTreesMakeStatsSummary
- BoostedTreesPredict
- BoostedTreesQuantileStreamResourceAddSummaries
- BoostedTreesQuantileStreamResourceDeserialize
- BoostedTreesQuantileStreamResourceFlush
- BoostedTreesQuantileStreamResourceGetBucketBoundaries
- BoostedTreesQuantileStreamResourceHandleOp
- BoostedTreesSerializeEnsemble
- BoostedTreesSparseAggregateStats
- BoostedTreesSparseCalculateBestFeatureSplit
- BoostedTreesTrainingPredict
- BoostedTreesUpdateEnsemble
- BoostedTreesUpdateEnsembleV2
- BroadcastArgs
- BroadcastGradientArgs
- BroadcastTo
- Bucketize
- BytesProducedStatsDataset
- CSRSparseMatrixComponents
- CSRSparseMatrixToDense
- CSRSparseMatrixToSparseTensor
- CSVDataset
- CSVDatasetV2
- CTCBeamSearchDecoder
- CTCGreedyDecoder
- CTCLoss
- CTCLossV2
- CacheDataset
- CacheDatasetV2
- Case
- Cast
- Ceil
- CheckNumerics
- CheckNumericsV2
- Cholesky
- CholeskyGrad
- ChooseFastestBranchDataset
- ChooseFastestDataset
- ClipByValue
- CloseSummaryWriter
- CollectiveAllToAllV2
- CollectiveAllToAllV3
- CollectiveAssignGroupV2
- CollectiveBcastRecv
- CollectiveBcastRecvV2
- CollectiveBcastSend
- CollectiveBcastSendV2
- CollectiveGather
- CollectiveGatherV2
- CollectiveInitializeCommunicator
- CollectivePermute
- CollectiveReduce
- CollectiveReduceScatterV2
- CollectiveReduceV2
- CollectiveReduceV3
- CombinedNonMaxSuppression
- Complex
- ComplexAbs
- CompositeTensorVariantFromComponents
- CompositeTensorVariantToComponents
- CompressElement
- ComputeAccidentalHits
- ComputeBatchSize
- Concat
- ConcatOffset
- ConcatV2
- ConcatenateDataset
- ConditionalAccumulator
- ConfigureDistributedTPU
- ConfigureTPUEmbedding
- Conj
- ConjugateTranspose
- Const
- ConsumeMutexLock
- ControlTrigger
- Conv
- Conv2D
- Conv2DBackpropFilter
- Conv2DBackpropFilterV2
- Conv2DBackpropInput
- Conv2DBackpropInputV2
- Conv3D
- Conv3DBackpropFilter
- Conv3DBackpropFilterV2
- Conv3DBackpropInput
- Conv3DBackpropInputV2
- ConvertToCooTensor
- Copy
- CopyHost
- Cos
- Cosh
- CountUpTo
- CreateSummaryDbWriter
- CreateSummaryFileWriter
- CropAndResize
- CropAndResizeGradBoxes
- CropAndResizeGradImage
- Cross
- CrossReplicaSum
- CudnnRNN
- CudnnRNNBackprop
- CudnnRNNBackpropV2
- CudnnRNNBackpropV3
- CudnnRNNCanonicalToParams
- CudnnRNNCanonicalToParamsV2
- CudnnRNNParamsSize
- CudnnRNNParamsToCanonical
- CudnnRNNParamsToCanonicalV2
- CudnnRNNV2
- CudnnRNNV3
- Cumprod
- Cumsum
- CumulativeLogsumexp
- DataFormatDimMap
- DataFormatVecPermute
- DataServiceDataset
- DataServiceDatasetV2
- DataServiceDatasetV3
- DataServiceDatasetV4
- DatasetCardinality
- DatasetFingerprint
- DatasetFromGraph
- DatasetToGraph
- DatasetToGraphV2
- DatasetToSingleElement
- DatasetToTFRecord
- Dawsn
- DebugGradientIdentity
- DebugGradientRefIdentity
- DebugIdentity
- DebugIdentityV2
- DebugIdentityV3
- DebugNanCount
- DebugNumericSummary
- DebugNumericSummaryV2
- DecodeAndCropJpeg
- DecodeBase64
- DecodeBmp
- DecodeCSV
- DecodeCompressed
- DecodeGif
- DecodeImage
- DecodeJSONExample
- DecodeJpeg
- DecodePaddedRaw
- DecodePng
- DecodeProtoV2
- DecodeRaw
- DecodeWav
- DeepCopy
- DeleteIterator
- DeleteMemoryCache
- DeleteMultiDeviceIterator
- DeleteRandomSeedGenerator
- DeleteSeedGenerator
- DeleteSessionTensor
- DenseBincount
- DenseCountSparseOutput
- DenseToCSRSparseMatrix
- DenseToDenseSetOperation
- DenseToSparseBatchDataset
- DenseToSparseSetOperation
- DepthToSpace
- DepthwiseConv2dNative
- DepthwiseConv2dNativeBackpropFilter
- DepthwiseConv2dNativeBackpropInput
- Dequantize
- DeserializeIterator
- DeserializeManySparse
- DeserializeSparse
- DestroyResourceOp
- DestroyTemporaryVariable
- DeviceIndex
- Diag
- DiagPart
- Digamma
- Dilation2D
- Dilation2DBackpropFilter
- Dilation2DBackpropInput
- DirectedInterleaveDataset
- DisableCopyOnRead
- DistributedSave
- Div
- DivNoNan
- DrawBoundingBoxes
- DrawBoundingBoxesV2
- DummyIterationCounter
- DummyMemoryCache
- DummySeedGenerator
- DynamicEnqueueTPUEmbeddingArbitraryTensorBatch
- DynamicEnqueueTPUEmbeddingRaggedTensorBatch
- DynamicPartition
- DynamicStitch
- EagerPyFunc
- EditDistance
- Eig
- Einsum
- Elu
- EluGrad
- Empty
- EmptyTensorList
- EmptyTensorMap
- EncodeBase64
- EncodeJpeg
- EncodeJpegVariableQuality
- EncodePng
- EncodeProto
- EncodeWav
- EnqueueTPUEmbeddingArbitraryTensorBatch
- EnqueueTPUEmbeddingIntegerBatch
- EnqueueTPUEmbeddingRaggedTensorBatch
- EnqueueTPUEmbeddingSparseBatch
- EnqueueTPUEmbeddingSparseTensorBatch
- EnsureShape
- Enter
- Equal
- Erf
- Erfc
- Erfinv
- EuclideanNorm
- Exit
- Exp
- ExpandDims
- ExperimentalAssertNextDataset
- ExperimentalAutoShardDataset
- ExperimentalBytesProducedStatsDataset
- ExperimentalCSVDataset
- ExperimentalChooseFastestDataset
- ExperimentalDatasetCardinality
- ExperimentalDatasetToTFRecord
- ExperimentalDenseToSparseBatchDataset
- ExperimentalDirectedInterleaveDataset
- ExperimentalGroupByReducerDataset
- ExperimentalGroupByWindowDataset
- ExperimentalIgnoreErrorsDataset
- ExperimentalIteratorGetDevice
- ExperimentalLMDBDataset
- ExperimentalLatencyStatsDataset
- ExperimentalMapAndBatchDataset
- ExperimentalMapDataset
- ExperimentalMatchingFilesDataset
- ExperimentalMaxIntraOpParallelismDataset
- ExperimentalNonSerializableDataset
- ExperimentalParallelInterleaveDataset
- ExperimentalParseExampleDataset
- ExperimentalPrivateThreadPoolDataset
- ExperimentalRandomDataset
- ExperimentalRebatchDataset
- ExperimentalScanDataset
- ExperimentalSetStatsAggregatorDataset
- ExperimentalSleepDataset
- ExperimentalSlidingWindowDataset
- ExperimentalSqlDataset
- ExperimentalStatsAggregatorHandle
- ExperimentalStatsAggregatorSummary
- ExperimentalTakeWhileDataset
- ExperimentalThreadPoolDataset
- ExperimentalThreadPoolHandle
- ExperimentalUnbatchDataset
- ExperimentalUniqueDataset
- Expint
- Expm1
- ExtractGlimpse
- ExtractGlimpseV2
- ExtractImagePatches
- ExtractJpegShape
- ExtractVolumePatches
- FFT
- FFT2D
- FFT3D
- FFTND
- FIFOQueue
- FIFOQueueV2
- Fact
- FakeParam
- FakeQuantWithMinMaxArgs
- FakeQuantWithMinMaxArgsGradient
- FakeQuantWithMinMaxVars
- FakeQuantWithMinMaxVarsGradient
- FakeQuantWithMinMaxVarsPerChannel
- FakeQuantWithMinMaxVarsPerChannelGradient
- FakeQueue
- FileSystemSetConfiguration
- Fill
- FilterByLastComponentDataset
- FilterDataset
- FinalizeDataset
- Fingerprint
- FixedLengthRecordDataset
- FixedLengthRecordDatasetV2
- FixedLengthRecordReader
- FixedLengthRecordReaderV2
- FixedUnigramCandidateSampler
- FlatMapDataset
- Floor
- FloorDiv
- FloorMod
- FlushSummaryWriter
- For
- FractionalAvgPool
- FractionalAvgPoolGrad
- FractionalMaxPool
- FractionalMaxPoolGrad
- FresnelCos
- FresnelSin
- FusedBatchNorm
- FusedBatchNormGrad
- FusedBatchNormGradV2
- FusedBatchNormGradV3
- FusedBatchNormV2
- FusedBatchNormV3
- FusedPadConv2D
- FusedResizeAndPadConv2D
- GRUBlockCell
- GRUBlockCellGrad
- Gather
- GatherNd
- GatherV2
- GenerateBoundingBoxProposals
- GenerateVocabRemapping
- GeneratorDataset
- GetElementAtIndex
- GetMinibatchSplitsWithPhysicalReplica
- GetMinibatchesInCsrWithPhysicalReplica
- GetOptions
- GetSessionHandle
- GetSessionHandleV2
- GetSessionTensor
- GlobalIterId
- Greater
- GreaterEqual
- GroupByReducerDataset
- GroupByWindowDataset
- GuaranteeConst
- HSVToRGB
- HashTable
- HashTableV2
- HistogramFixedWidth
- HistogramSummary
- IFFT
- IFFT2D
- IFFT3D
- IFFTND
- IRFFT
- IRFFT2D
- IRFFT3D
- IRFFTND
- Identity
- IdentityN
- IdentityReader
- IdentityReaderV2
- If
- Igamma
- IgammaGradA
- Igammac
- IgnoreErrorsDataset
- Imag
- ImageProjectiveTransformV2
- ImageProjectiveTransformV3
- ImageSummary
- ImmutableConst
- ImportEvent
- InTopK
- InTopKV2
- InfeedDequeue
- InfeedDequeueTuple
- InfeedEnqueue
- InfeedEnqueuePrelinearizedBuffer
- InfeedEnqueueTuple
- InitializeTable
- InitializeTableFromDataset
- InitializeTableFromTextFile
- InitializeTableFromTextFileV2
- InitializeTableV2
- InplaceAdd
- InplaceSub
- InplaceUpdate
- InterleaveDataset
- Inv
- InvGrad
- Invert
- InvertPermutation
- IsBoostedTreesEnsembleInitialized
- IsBoostedTreesQuantileStreamResourceInitialized
- IsFinite
- IsInf
- IsNan
- IsTPUEmbeddingInitialized
- IsVariableInitialized
- IsotonicRegression
- Iterator
- IteratorFromStringHandle
- IteratorFromStringHandleV2
- IteratorGetDevice
- IteratorGetNext
- IteratorGetNextAsOptional
- IteratorGetNextSync
- IteratorToStringHandle
- IteratorV2
- KMC2ChainInitialization
- KmeansPlusPlusInitialization
- L2Loss
- LMDBDataset
- LMDBReader
- LRN
- LRNGrad
- LSTMBlockCell
- LSTMBlockCellGrad
- LatencyStatsDataset
- LeakyRelu
- LeakyReluGrad
- LearnedUnigramCandidateSampler
- LeftShift
- LegacyParallelInterleaveDatasetV2
- Less
- LessEqual
- Lgamma
- LinSpace
- ListDataset
- ListDiff
- ListSnapshotChunksDataset
- LoadAndRemapMatrix
- LoadDataset
- LoadTPUEmbeddingADAMParameters
- LoadTPUEmbeddingAdadeltaParameters
- LoadTPUEmbeddingAdagradMomentumParameters
- LoadTPUEmbeddingAdagradParameters
- LoadTPUEmbeddingCenteredRMSPropParameters
- LoadTPUEmbeddingFTRLParameters
- LoadTPUEmbeddingFrequencyEstimatorParameters
- LoadTPUEmbeddingMDLAdagradLightParameters
- LoadTPUEmbeddingMomentumParameters
- LoadTPUEmbeddingProximalAdagradParameters
- LoadTPUEmbeddingProximalYogiParameters
- LoadTPUEmbeddingRMSPropParameters
- LoadTPUEmbeddingStochasticGradientDescentParameters
- Log
- Log1p
- LogMatrixDeterminant
- LogSoftmax
- LogUniformCandidateSampler
- LogicalAnd
- LogicalNot
- LogicalOr
- LookupTableExport
- LookupTableExportV2
- LookupTableFind
- LookupTableFindV2
- LookupTableImport
- LookupTableImportV2
- LookupTableInsert
- LookupTableInsertV2
- LookupTableRemoveV2
- LookupTableSize
- LookupTableSizeV2
- LoopCond
- LowerBound
- Lu
- MakeIterator
- MapAndBatchDataset
- MapClear
- MapDataset
- MapDefun
- MapIncompleteSize
- MapPeek
- MapSize
- MapStage
- MapUnstage
- MapUnstageNoKey
- MatMul
- MatchingFiles
- MatchingFilesDataset
- MatrixBandPart
- MatrixDeterminant
- MatrixDiag
- MatrixDiagPart
- MatrixDiagPartV2
- MatrixDiagPartV3
- MatrixDiagV2
- MatrixDiagV3
- MatrixExponential
- MatrixInverse
- MatrixLogarithm
- MatrixSetDiag
- MatrixSetDiagV2
- MatrixSetDiagV3
- MatrixSolve
- MatrixSolveLs
- MatrixSquareRoot
- MatrixTriangularSolve
- Max
- MaxIntraOpParallelismDataset
- MaxPool
- MaxPool3D
- MaxPool3DGrad
- MaxPool3DGradGrad
- MaxPoolGrad
- MaxPoolGradGrad
- MaxPoolGradGradV2
- MaxPoolGradGradWithArgmax
- MaxPoolGradV2
- MaxPoolGradWithArgmax
- MaxPoolV2
- MaxPoolWithArgmax
- Maximum
- Mean
- Merge
- MergeSummary
- MergeV2Checkpoints
- Mfcc
- Min
- Minimum
- MirrorPad
- MirrorPadGrad
- Mod
- ModelDataset
- Mul
- MulNoNan
- MultiDeviceIterator
- MultiDeviceIteratorFromStringHandle
- MultiDeviceIteratorGetNextFromShard
- MultiDeviceIteratorInit
- MultiDeviceIteratorToStringHandle
- Multinomial
- MutableDenseHashTable
- MutableDenseHashTableV2
- MutableHashTable
- MutableHashTableOfTensors
- MutableHashTableOfTensorsV2
- MutableHashTableV2
- MutexLock
- MutexV2
- NcclAllReduce
- NcclBroadcast
- NcclReduce
- Ndtri
- NearestNeighbors
- Neg
- NextAfter
- NextIteration
- NoOp
- NonDeterministicInts
- NonMaxSuppression
- NonMaxSuppressionV2
- NonMaxSuppressionV3
- NonMaxSuppressionV4
- NonMaxSuppressionV5
- NonMaxSuppressionWithOverlaps
- NonSerializableDataset
- NotEqual
- NthElement
- OneHot
- OneShotIterator
- OnesLike
- OptimizeDataset
- OptimizeDatasetV2
- OptionalFromValue
- OptionalGetValue
- OptionalHasValue
- OptionalNone
- OptionsDataset
- OrderedMapClear
- OrderedMapIncompleteSize
- OrderedMapPeek
- OrderedMapSize
- OrderedMapStage
- OrderedMapUnstage
- OrderedMapUnstageNoKey
- OutfeedDequeue
- OutfeedDequeueTuple
- OutfeedDequeueTupleV2
- OutfeedDequeueV2
- OutfeedEnqueue
- OutfeedEnqueueTuple
- Pack
- Pad
- PadV2
- PaddedBatchDataset
- PaddedBatchDatasetV2
- PaddingFIFOQueue
- PaddingFIFOQueueV2
- ParallelBatchDataset
- ParallelConcat
- ParallelDynamicStitch
- ParallelFilterDataset
- ParallelInterleaveDataset
- ParallelInterleaveDatasetV2
- ParallelInterleaveDatasetV3
- ParallelInterleaveDatasetV4
- ParallelMapDataset
- ParallelMapDatasetV2
- ParameterizedTruncatedNormal
- ParseExample
- ParseExampleDataset
- ParseExampleDatasetV2
- ParseExampleV2
- ParseSequenceExample
- ParseSequenceExampleV2
- ParseSingleExample
- ParseSingleSequenceExample
- ParseTensor
- PartitionedCall
- Placeholder
- PlaceholderV2
- PlaceholderWithDefault
- Polygamma
- PopulationCount
- Pow
- PrefetchDataset
- Prelinearize
- PrelinearizeTuple
- PreventGradient
- PrintV2
- PriorityQueue
- PriorityQueueV2
- PrivateThreadPoolDataset
- Prod
- PyFunc
- PyFuncStateless
- Qr
- QuantizeAndDequantize
- QuantizeAndDequantizeV2
- QuantizeAndDequantizeV3
- QuantizeAndDequantizeV4
- QuantizeAndDequantizeV4Grad
- QuantizeDownAndShrinkRange
- QuantizeV2
- QuantizedAdd
- QuantizedAvgPool
- QuantizedBatchNormWithGlobalNormalization
- QuantizedBiasAdd
- QuantizedConcat
- QuantizedConv2D
- QuantizedConv2DAndRelu
- QuantizedConv2DAndReluAndRequantize
- QuantizedConv2DAndRequantize
- QuantizedConv2DPerChannel
- QuantizedConv2DWithBias
- QuantizedConv2DWithBiasAndRelu
- QuantizedConv2DWithBiasAndReluAndRequantize
- QuantizedConv2DWithBiasAndRequantize
- QuantizedConv2DWithBiasSignedSumAndReluAndRequantize
- QuantizedConv2DWithBiasSumAndRelu
- QuantizedConv2DWithBiasSumAndReluAndRequantize
- QuantizedDepthwiseConv2D
- QuantizedDepthwiseConv2DWithBias
- QuantizedDepthwiseConv2DWithBiasAndRelu
- QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize
- QuantizedInstanceNorm
- QuantizedMatMul
- QuantizedMatMulWithBias
- QuantizedMatMulWithBiasAndDequantize
- QuantizedMatMulWithBiasAndRelu
- QuantizedMatMulWithBiasAndReluAndRequantize
- QuantizedMatMulWithBiasAndRequantize
- QuantizedMaxPool
- QuantizedMul
- QuantizedRelu
- QuantizedRelu6
- QuantizedReluX
- QuantizedReshape
- QuantizedResizeBilinear
- QueueClose
- QueueCloseV2
- QueueDequeue
- QueueDequeueMany
- QueueDequeueManyV2
- QueueDequeueUpTo
- QueueDequeueUpToV2
- QueueDequeueV2
- QueueEnqueue
- QueueEnqueueMany
- QueueEnqueueManyV2
- QueueEnqueueV2
- QueueIsClosed
- QueueIsClosedV2
- QueueSize
- QueueSizeV2
- RFFT
- RFFT2D
- RFFT3D
- RFFTND
- RGBToHSV
- RaggedBincount
- RaggedCountSparseOutput
- RaggedCross
- RaggedFillEmptyRows
- RaggedFillEmptyRowsGrad
- RaggedGather
- RaggedRange
- RaggedTensorFromVariant
- RaggedTensorToSparse
- RaggedTensorToTensor
- RaggedTensorToVariant
- RaggedTensorToVariantGradient
- RandomCrop
- RandomDataset
- RandomDatasetV2
- RandomGamma
- RandomGammaGrad
- RandomIndexShuffle
- RandomPoisson
- RandomPoissonV2
- RandomShuffle
- RandomShuffleQueue
- RandomShuffleQueueV2
- RandomStandardNormal
- RandomUniform
- RandomUniformInt
- Range
- RangeDataset
- Rank
- ReadFile
- ReadVariableOp
- ReadVariableXlaSplitND
- ReaderNumRecordsProduced
- ReaderNumRecordsProducedV2
- ReaderNumWorkUnitsCompleted
- ReaderNumWorkUnitsCompletedV2
- ReaderRead
- ReaderReadUpTo
- ReaderReadUpToV2
- ReaderReadV2
- ReaderReset
- ReaderResetV2
- ReaderRestoreState
- ReaderRestoreStateV2
- ReaderSerializeState
- ReaderSerializeStateV2
- Real
- RealDiv
- RebatchDataset
- RebatchDatasetV2
- Reciprocal
- ReciprocalGrad
- RecordInput
- Recv
- RecvTPUEmbeddingActivations
- ReduceDataset
- ReduceJoin
- RefEnter
- RefExit
- RefIdentity
- RefMerge
- RefNextIteration
- RefSelect
- RefSwitch
- RegexFullMatch
- RegexReplace
- RegisterDataset
- RegisterDatasetV2
- Relu
- Relu6
- Relu6Grad
- ReluGrad
- RemoteCall
- RepeatDataset
- RequantizationRange
- RequantizationRangePerChannel
- Requantize
- RequantizePerChannel
- Reshape
- ResizeArea
- ResizeBicubic
- ResizeBicubicGrad
- ResizeBilinear
- ResizeBilinearGrad
- ResizeNearestNeighbor
- ResizeNearestNeighborGrad
- ResourceAccumulatorApplyGradient
- ResourceAccumulatorNumAccumulated
- ResourceAccumulatorSetGlobalStep
- ResourceAccumulatorTakeGradient
- ResourceApplyAdaMax
- ResourceApplyAdadelta
- ResourceApplyAdagrad
- ResourceApplyAdagradDA
- ResourceApplyAdagradV2
- ResourceApplyAdam
- ResourceApplyAdamWithAmsgrad
- ResourceApplyAddSign
- ResourceApplyCenteredRMSProp
- ResourceApplyFtrl
- ResourceApplyFtrlV2
- ResourceApplyGradientDescent
- ResourceApplyKerasMomentum
- ResourceApplyMomentum
- ResourceApplyPowerSign
- ResourceApplyProximalAdagrad
- ResourceApplyProximalGradientDescent
- ResourceApplyRMSProp
- ResourceConditionalAccumulator
- ResourceCountUpTo
- ResourceGather
- ResourceGatherNd
- ResourceScatterAdd
- ResourceScatterDiv
- ResourceScatterMax
- ResourceScatterMin
- ResourceScatterMul
- ResourceScatterNdAdd
- ResourceScatterNdMax
- ResourceScatterNdMin
- ResourceScatterNdSub
- ResourceScatterNdUpdate
- ResourceScatterSub
- ResourceScatterUpdate
- ResourceSparseApplyAdadelta
- ResourceSparseApplyAdagrad
- ResourceSparseApplyAdagradDA
- ResourceSparseApplyAdagradV2
- ResourceSparseApplyCenteredRMSProp
- ResourceSparseApplyFtrl
- ResourceSparseApplyFtrlV2
- ResourceSparseApplyKerasMomentum
- ResourceSparseApplyMomentum
- ResourceSparseApplyProximalAdagrad
- ResourceSparseApplyProximalGradientDescent
- ResourceSparseApplyRMSProp
- ResourceStridedSliceAssign
- Restore
- RestoreSlice
- RestoreV2
- RetrieveTPUEmbeddingADAMParameters
- RetrieveTPUEmbeddingAdadeltaParameters
- RetrieveTPUEmbeddingAdagradMomentumParameters
- RetrieveTPUEmbeddingAdagradParameters
- RetrieveTPUEmbeddingCenteredRMSPropParameters
- RetrieveTPUEmbeddingFTRLParameters
- RetrieveTPUEmbeddingFrequencyEstimatorParameters
- RetrieveTPUEmbeddingMDLAdagradLightParameters
- RetrieveTPUEmbeddingMomentumParameters
- RetrieveTPUEmbeddingProximalAdagradParameters
- RetrieveTPUEmbeddingProximalYogiParameters
- RetrieveTPUEmbeddingRMSPropParameters
- RetrieveTPUEmbeddingStochasticGradientDescentParameters
- Reverse
- ReverseSequence
- ReverseV2
- RewriteDataset
- RightShift
- Rint
- RngReadAndSkip
- RngSkip
- Roll
- Round
- Rsqrt
- RsqrtGrad
- SampleDistortedBoundingBox
- SampleDistortedBoundingBoxV2
- SamplingDataset
- Save
- SaveDataset
- SaveDatasetV2
- SaveSlices
- SaveV2
- ScalarSummary
- ScaleAndTranslate
- ScaleAndTranslateGrad
- ScanDataset
- ScatterAdd
- ScatterDiv
- ScatterMax
- ScatterMin
- ScatterMul
- ScatterNd
- ScatterNdAdd
- ScatterNdMax
- ScatterNdMin
- ScatterNdNonAliasingAdd
- ScatterNdSub
- ScatterNdUpdate
- ScatterSub
- ScatterUpdate
- SdcaFprint
- SdcaOptimizer
- SdcaOptimizerV2
- SdcaShrinkL1
- SegmentMax
- SegmentMaxV2
- SegmentMean
- SegmentMin
- SegmentMinV2
- SegmentProd
- SegmentProdV2
- SegmentSum
- SegmentSumV2
- Select
- SelectV2
- SelfAdjointEig
- SelfAdjointEigV2
- Selu
- SeluGrad
- Send
- SendTPUEmbeddingGradients
- SerializeIterator
- SerializeManySparse
- SerializeSparse
- SerializeTensor
- SetSize
- SetStatsAggregatorDataset
- Shape
- ShapeN
- ShardDataset
- ShardedFilename
- ShardedFilespec
- ShuffleAndRepeatDataset
- ShuffleAndRepeatDatasetV2
- ShuffleDataset
- ShuffleDatasetV2
- ShuffleDatasetV3
- ShutdownDistributedTPU
- Sigmoid
- SigmoidGrad
- Sign
- Sin
- Sinh
- Size
- SkipDataset
- SleepDataset
- Slice
- SlidingWindowDataset
- Snapshot
- SnapshotChunkDataset
- SnapshotDataset
- SnapshotDatasetReader
- SnapshotDatasetV2
- SnapshotNestedDatasetReader
- SobolSample
- Softmax
- SoftmaxCrossEntropyWithLogits
- Softplus
- SoftplusGrad
- Softsign
- SoftsignGrad
- SpaceToBatch
- SpaceToBatchND
- SpaceToDepth
- SparseAccumulatorApplyGradient
- SparseAccumulatorTakeGradient
- SparseAdd
- SparseAddGrad
- SparseApplyAdadelta
- SparseApplyAdagrad
- SparseApplyAdagradDA
- SparseApplyAdagradV2
- SparseApplyCenteredRMSProp
- SparseApplyFtrl
- SparseApplyFtrlV2
- SparseApplyMomentum
- SparseApplyProximalAdagrad
- SparseApplyProximalGradientDescent
- SparseApplyRMSProp
- SparseBincount
- SparseConcat
- SparseConditionalAccumulator
- SparseCountSparseOutput
- SparseCross
- SparseCrossHashed
- SparseCrossV2
- SparseDenseCwiseAdd
- SparseDenseCwiseDiv
- SparseDenseCwiseMul
- SparseFillEmptyRows
- SparseFillEmptyRowsGrad
- SparseMatMul
- SparseMatrixAdd
- SparseMatrixMatMul
- SparseMatrixMul
- SparseMatrixNNZ
- SparseMatrixOrderingAMD
- SparseMatrixSoftmax
- SparseMatrixSoftmaxGrad
- SparseMatrixSparseCholesky
- SparseMatrixSparseMatMul
- SparseMatrixTranspose
- SparseMatrixZeros
- SparseReduceMax
- SparseReduceMaxSparse
- SparseReduceSum
- SparseReduceSumSparse
- SparseReorder
- SparseReshape
- SparseSegmentMean
- SparseSegmentMeanGrad
- SparseSegmentMeanGradV2
- SparseSegmentMeanWithNumSegments
- SparseSegmentSqrtN
- SparseSegmentSqrtNGrad
- SparseSegmentSqrtNGradV2
- SparseSegmentSqrtNWithNumSegments
- SparseSegmentSum
- SparseSegmentSumGrad
- SparseSegmentSumGradV2
- SparseSegmentSumWithNumSegments
- SparseSlice
- SparseSliceGrad
- SparseSoftmax
- SparseSoftmaxCrossEntropyWithLogits
- SparseSparseMaximum
- SparseSparseMinimum
- SparseSplit
- SparseTensorDenseAdd
- SparseTensorDenseMatMul
- SparseTensorSliceDataset
- SparseTensorToCSRSparseMatrix
- SparseToDense
- SparseToSparseSetOperation
- Spence
- Split
- SplitV
- SqlDataset
- Sqrt
- SqrtGrad
- Square
- SquaredDifference
- Squeeze
- Stack
- StackClose
- StackCloseV2
- StackPop
- StackPopV2
- StackPush
- StackPushV2
- StackV2
- Stage
- StageClear
- StagePeek
- StageSize
- StatefulPartitionedCall
- StatefulRandomBinomial
- StatefulStandardNormal
- StatefulStandardNormalV2
- StatefulTruncatedNormal
- StatefulUniform
- StatefulUniformFullInt
- StatefulUniformInt
- StatelessCase
- StatelessIf
- StatelessMultinomial
- StatelessParameterizedTruncatedNormal
- StatelessRandomBinomial
- StatelessRandomGammaV2
- StatelessRandomGammaV3
- StatelessRandomGetAlg
- StatelessRandomGetKeyCounter
- StatelessRandomGetKeyCounterAlg
- StatelessRandomNormal
- StatelessRandomNormalV2
- StatelessRandomPoisson
- StatelessRandomUniform
- StatelessRandomUniformFullInt
- StatelessRandomUniformFullIntV2
- StatelessRandomUniformInt
- StatelessRandomUniformIntV2
- StatelessRandomUniformV2
- StatelessSampleDistortedBoundingBox
- StatelessShuffle
- StatelessTruncatedNormal
- StatelessTruncatedNormalV2
- StatelessWhile
- StaticRegexFullMatch
- StaticRegexReplace
- StatsAggregatorHandle
- StatsAggregatorHandleV2
- StatsAggregatorSetSummaryWriter
- StatsAggregatorSummary
- StopGradient
- StoreMinibatchStatisticsInFdo
- StridedSlice
- StridedSliceAssign
- StridedSliceGrad
- StringFormat
- StringJoin
- StringLength
- StringLower
- StringNGrams
- StringSplit
- StringSplitV2
- StringStrip
- StringToHashBucket
- StringToHashBucketFast
- StringToHashBucketStrong
- StringToNumber
- StringUpper
- Sub
- Substr
- Sum
- SummaryWriter
- Svd
- Switch
- SymbolicGradient
- SyncDevice
- TFRecordDataset
- TFRecordDatasetV2
- TFRecordReader
- TFRecordReaderV2
- TPUAnnotateTensorsWithDynamicShape
- TPUCompilationResult
- TPUCopyWithDynamicShape
- TPUEmbeddingActivations
- TPUOrdinalSelector
- TPUPartitionedCall
- TPUPartitionedInput
- TPUPartitionedInputV2
- TPUPartitionedOutput
- TPUPartitionedOutputV2
- TPUReplicateMetadata
- TPUReplicatedInput
- TPUReplicatedOutput
- TakeDataset
- TakeManySparseFromTensorsMap
- TakeWhileDataset
- Tan
- Tanh
- TanhGrad
- TemporaryVariable
- TensorArray
- TensorArrayClose
- TensorArrayCloseV2
- TensorArrayCloseV3
- TensorArrayConcat
- TensorArrayConcatV2
- TensorArrayConcatV3
- TensorArrayGather
- TensorArrayGatherV2
- TensorArrayGatherV3
- TensorArrayGrad
- TensorArrayGradV2
- TensorArrayGradV3
- TensorArrayGradWithShape
- TensorArrayPack
- TensorArrayRead
- TensorArrayReadV2
- TensorArrayReadV3
- TensorArrayScatter
- TensorArrayScatterV2
- TensorArrayScatterV3
- TensorArraySize
- TensorArraySizeV2
- TensorArraySizeV3
- TensorArraySplit
- TensorArraySplitV2
- TensorArraySplitV3
- TensorArrayUnpack
- TensorArrayV2
- TensorArrayV3
- TensorArrayWrite
- TensorArrayWriteV2
- TensorArrayWriteV3
- TensorDataset
- TensorListConcat
- TensorListConcatLists
- TensorListConcatV2
- TensorListElementShape
- TensorListFromTensor
- TensorListGather
- TensorListGetItem
- TensorListLength
- TensorListPopBack
- TensorListPushBack
- TensorListPushBackBatch
- TensorListReserve
- TensorListResize
- TensorListScatter
- TensorListScatterIntoExistingList
- TensorListScatterV2
- TensorListSetItem
- TensorListSplit
- TensorListStack
- TensorMapErase
- TensorMapHasKey
- TensorMapInsert
- TensorMapLookup
- TensorMapSize
- TensorMapStackKeys
- TensorScatterAdd
- TensorScatterMax
- TensorScatterMin
- TensorScatterSub
- TensorScatterUpdate
- TensorSliceDataset
- TensorStridedSliceUpdate
- TensorSummary
- TensorSummaryV2
- TextLineDataset
- TextLineReader
- TextLineReaderV2
- ThreadPoolDataset
- ThreadPoolHandle
- ThreadUnsafeUnigramCandidateSampler
- Tile
- TileGrad
- Timestamp
- ToBool
- TopK
- TopKV2
- Transpose
- TridiagonalMatMul
- TridiagonalSolve
- TruncateDiv
- TruncateMod
- TruncatedNormal
- Unbatch
- UnbatchDataset
- UnbatchGrad
- UncompressElement
- UnicodeDecode
- UnicodeDecodeWithOffsets
- UnicodeEncode
- UnicodeScript
- UnicodeTranscode
- UniformCandidateSampler
- UniformDequantize
- UniformQuantize
- UniformQuantizedAdd
- UniformQuantizedClipByValue
- UniformQuantizedConvolution
- UniformQuantizedConvolutionHybrid
- UniformQuantizedDot
- UniformQuantizedDotHybrid
- UniformRequantize
- Unique
- UniqueDataset
- UniqueV2
- UniqueWithCounts
- UniqueWithCountsV2
- Unpack
- UnravelIndex
- UnsortedSegmentJoin
- UnsortedSegmentMax
- UnsortedSegmentMin
- UnsortedSegmentProd
- UnsortedSegmentSum
- Unstage
- UnwrapDatasetVariant
- UpperBound
- VarHandleOp
- VarIsInitializedOp
- Variable
- VariableShape
- VariableV2
- Where
- While
- WholeFileReader
- WholeFileReaderV2
- WindowDataset
- WindowOp
- WorkerHeartbeat
- WrapDatasetVariant
- WriteAudioSummary
- WriteFile
- WriteGraphSummary
- WriteHistogramSummary
- WriteImageSummary
- WriteRawProtoSummary
- WriteScalarSummary
- WriteSummary
- Xdivy
- XlaConcatND
- XlaSparseCoreAdagrad
- XlaSparseCoreAdagradMomentum
- XlaSparseCoreAdam
- XlaSparseCoreFtrl
- XlaSparseCoreSgd
- XlaSparseDenseMatmul
- XlaSparseDenseMatmulGradWithAdagradAndCsrInput
- XlaSparseDenseMatmulGradWithAdagradMomentumAndCsrInput
- XlaSparseDenseMatmulGradWithAdamAndCsrInput
- XlaSparseDenseMatmulGradWithFtrlAndCsrInput
- XlaSparseDenseMatmulGradWithSgdAndCsrInput
- XlaSparseDenseMatmulWithCsrInput
- XlaSplitND
- Xlog1py
- Xlogy
- ZerosLike
- Zeta
- ZipDataset
tf.signal
- Overview
- dct
- fft
- fft2d
- fft3d
- fftnd
- fftshift
- frame
- hamming_window
- hann_window
- idct
- ifft
- ifft2d
- ifft3d
- ifftnd
- ifftshift
- inverse_mdct
- inverse_stft
- inverse_stft_window_fn
- irfft
- irfft2d
- irfft3d
- irfftnd
- kaiser_bessel_derived_window
- kaiser_window
- linear_to_mel_weight_matrix
- mdct
- mfccs_from_log_mel_spectrograms
- overlap_and_add
- rfft
- rfft2d
- rfft3d
- rfftnd
- stft
- vorbis_window
tf.sparse
- Overview
- SparseTensor
- add
- bincount
- concat
- cross
- cross_hashed
- expand_dims
- eye
- fill_empty_rows
- from_dense
- map_values
- mask
- maximum
- minimum
- reduce_max
- reduce_sum
- reorder
- reset_shape
- reshape
- retain
- segment_mean
- segment_sqrt_n
- segment_sum
- slice
- softmax
- sparse_dense_matmul
- split
- to_dense
- to_indicator
- transpose
tf.strings
- Overview
- as_string
- bytes_split
- format
- join
- length
- lower
- ngrams
- reduce_join
- regex_full_match
- regex_replace
- split
- strip
- substr
- to_hash_bucket
- to_hash_bucket_fast
- to_hash_bucket_strong
- to_number
- unicode_decode
- unicode_decode_with_offsets
- unicode_encode
- unicode_script
- unicode_split
- unicode_split_with_offsets
- unicode_transcode
- unsorted_segment_join
- upper
tf.summary
tf.test
- Overview
- Benchmark
- TestCase
- TestCase.failureException
- assert_equal_graph_def
- benchmark_config
- compute_gradient
- create_local_cluster
- disable_with_predicate
- gpu_device_name
- is_built_with_cuda
- is_built_with_gpu_support
- is_built_with_rocm
- is_built_with_xla
- is_gpu_available
- main
- with_eager_op_as_function
tf.tpu
- Overview
- XLAOptions
- experimental
* Overview
* DeviceAssignment
* DeviceOrderMode
* HardwareFeature
* HardwareFeature.EmbeddingFeature
* TPUSystemMetadata
* Topology
* initialize_tpu_system
* shutdown_tpu_system
* embedding
* Overview
* Adagrad
* AdagradMomentum
* Adam
* FTRL
* FeatureConfig
* QuantizationConfig
* RowIdInitializer
* SGD
* TPUEmbedding
* TPUEmbeddingForServing
* TPUEmbeddingV0
* TPUEmbeddingV2
* TableConfig
* serving_embedding_lookup
tf.train
- Overview
- BytesList
- Checkpoint
- CheckpointManager
- CheckpointOptions
- CheckpointView
- ClusterDef
- ClusterSpec
- Coordinator
- Example
- ExponentialMovingAverage
- Feature
- FeatureList
- FeatureLists
- FeatureLists.FeatureListEntry
- Features
- Features.FeatureEntry
- FloatList
- Int64List
- JobDef
- JobDef.TasksEntry
- SequenceExample
- ServerDef
- TrackableView
- checkpoints_iterator
- get_checkpoint_state
- latest_checkpoint
- list_variables
- load_checkpoint
- load_variable
tf.types
tf.math.reduce_sum
Stay organized with collections Save and categorize content based on your preferences.
Computes the sum of elements across dimensions of a tensor.
View aliases
Main aliases
tf.math.reduce_sum(
input_tensor, axis=None, keepdims=False, name=None
)
Used in the notebooks
This is the reduction operation for the elementwise tf.math.add op.
Reduces input_tensor
along the dimensions given in axis
. Unless keepdims
is true, the rank of the tensor is reduced by 1 for each of the entries in axis
, which must be unique. If keepdims
is true, the reduced dimensions are retained with length 1.
If axis
is None, all dimensions are reduced, and a tensor with a single element is returned.
For example |
---|
>>> # x has a shape of (2, 3) (two rows and three columns): >>> x = tf.constant([[1, 1, 1], [1, 1, 1]]) >>> x.numpy() array([[1, 1, 1], [1, 1, 1]], dtype=int32) >>> # sum all the elements >>> # 1 + 1 + 1 + 1 + 1+ 1 = 6 >>> tf.reduce_sum(x).numpy() 6 >>> # reduce along the first dimension >>> # the result is [1, 1, 1] + [1, 1, 1] = [2, 2, 2] >>> tf.reduce_sum(x, 0).numpy() array([2, 2, 2], dtype=int32) >>> # reduce along the second dimension >>> # the result is [1, 1] + [1, 1] + [1, 1] = [3, 3] >>> tf.reduce_sum(x, 1).numpy() array([3, 3], dtype=int32) >>> # keep the original dimensions >>> tf.reduce_sum(x, 1, keepdims=True).numpy() array([[3], [3]], dtype=int32) >>> # reduce along both dimensions >>> # the result is 1 + 1 + 1 + 1 + 1 + 1 = 6 >>> # or, equivalently, reduce along rows, then reduce the resultant array >>> # [1, 1, 1] + [1, 1, 1] = [2, 2, 2] >>> # 2 + 2 + 2 = 6 >>> tf.reduce_sum(x, [0, 1]).numpy() 6 |
Args | |
---|---|
input_tensor | The tensor to reduce. Should have numeric type. |
axis | The dimensions to reduce. If None (the default), reduces all dimensions. Must be in the range [-rank(input_tensor), rank(input_tensor)]. |
keepdims | If true, retains reduced dimensions with length 1. |
name | A name for the operation (optional). |
Returns |
---|
The reduced tensor, of the same dtype as the input_tensor. |
numpy compatibility
Equivalent to np.sum apart the fact that numpy upcast uint8 and int32 to int64 while tensorflow returns the same dtype as the input.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.