本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权。
Building Graphs:
add_to_collectionas_dtypecontrol_dependenciesconvert_to_tensordeviceDimensionDTypeget_collectionget_default_graphget_seedGraphGraphKeysimport_graph_defname_scopeNoGradientop_scopeOperationRegisterGradientRegisterShapeTensorTensorShapeConstants, Sequences, and Random Values:
constantfilllinspaceonesones_likerandom_normalrandom_shufflerandom_uniformrangeset_random_seedtruncated_normalzeroszeros_likeVariables:
all_variablesassert_variables_initializedassignassign_addassign_subconstant_initializercount_up_todeviceget_checkpoint_stateget_variableget_variable_scopeIndexedSlicesinitialize_all_variablesinitialize_variableslatest_checkpointrandom_normal_initializerrandom_uniform_initializerSaverscatter_addscatter_subscatter_updatesparse_masktrainable_variablestruncated_normal_initializeruniform_unit_scaling_initializerupdate_checkpoint_stateVariablevariable_scopezeros_initializerTensor Transformations:
castconcatdynamic_partitiondynamic_stitchexpand_dimsgatherpackpadrankreshapereversereverse_sequenceshapesizeslicesplitsqueezestring_to_numbertileto_bfloat16to_doubleto_floatto_int32to_int64transposeunpackMath:
absaccumulate_naddadd_nargmaxargminbatch_choleskybatch_matmulbatch_matrix_determinantbatch_matrix_inverseceilcholeskycomplexcomplex_absconjcosdiagdivedit_distanceexpfloorimaginvinvert_permutationlistdifflogmatmulmatrix_determinantmatrix_inversemaximumminimummodmulnegpowrealreduce_allreduce_anyreduce_maxreduce_meanreduce_minreduce_prodreduce_sumroundrsqrtsegment_maxsegment_meansegment_minsegment_prodsegment_sumsignsinsparse_segment_meansparse_segment_sumsqrtsquaresubtransposeuniqueunsorted_segment_sumwhereControl Flow:
add_check_numerics_opsAssertcheck_numericscount_up_toequalgreatergreater_equalgroupidentityis_finiteis_infis_nanlessless_equallogical_andlogical_notlogical_orlogical_xorno_opnot_equalPrintselecttupleverify_tensor_all_finitewhereImages:
adjust_brightnessadjust_contrastcrop_to_bounding_boxdecode_jpegdecode_pngencode_jpegencode_pngextract_glimpseflip_left_rightflip_up_downpad_to_bounding_boxper_image_whiteningrandom_brightnessrandom_contrastrandom_croprandom_flip_left_rightrandom_flip_up_downresize_arearesize_bicubicresize_bilinearresize_image_with_crop_or_padresize_imagesresize_nearest_neighbortranspose_imageSparse Tensors:
shapesparse_concatsparse_fill_empty_rowssparse_reordersparse_retainsparse_tensor_to_densesparse_to_densesparse_to_indicatorSparseTensorSparseTensorValueInputs and Readers:
batchbatch_joindecode_csvdecode_rawFIFOQueueFixedLengthRecordReaderIdentityReaderlimit_epochsmatch_filenames_oncematching_filesparse_exampleparse_single_exampleplaceholderQueueBaseRandomShuffleQueuerange_input_producerread_fileReaderBaseshuffle_batchshuffle_batch_joinsizeslice_input_producerstring_input_producerTextLineReaderTFRecordReaderWholeFileReaderData IO (Python functions):
tf_record_iteratorTFRecordWriterNeural Network:
avg_poolbias_addcompute_accidental_hitsconv2ddepthwise_conv2ddropoutembedding_lookupfixed_unigram_candidate_samplerin_top_kl2_lossl2_normalizelearned_unigram_candidate_samplerlocal_response_normalizationlog_uniform_candidate_samplermax_poolmax_pool_with_argmaxmomentsnce_lossrelurelu6sampled_softmax_lossseparable_conv2dsigmoidsigmoid_cross_entropy_with_logitssoftmaxsoftmax_cross_entropy_with_logitssoftplustanhtop_kuniform_candidate_samplerRunning Graphs:
AbortedErrorAlreadyExistsErrorCancelledErrorDataLossErrorDeadlineExceededErrorFailedPreconditionErrorget_default_sessionInteractiveSessionInternalErrorInvalidArgumentErrorNotFoundErrorOpErrorOutOfRangeErrorPermissionDeniedErrorResourceExhaustedErrorSessionUnauthenticatedErrorUnavailableErrorUnimplementedErrorUnknownErrorTraining:
AdagradOptimizerAdamOptimizeradd_queue_runnerAggregationMethodclip_by_average_normclip_by_global_normclip_by_normclip_by_valueCoordinatorexponential_decayExponentialMovingAverageFtrlOptimizerglobal_normglobal_stepGradientDescentOptimizergradientshistogram_summaryimage_summarymerge_all_summariesmerge_summaryMomentumOptimizerOptimizerQueueRunnerRMSPropOptimizerscalar_summarystart_queue_runnersstop_gradientsummary_iteratorSummaryWriterwrite_graphzero_fraction