02-1tensorflow.nn主要功能模塊

Activation Functions
  • relu
  • relu6
  • elu
  • softplus
  • softsign
  • dropout
  • bias_add
  • sigmoid
  • tanh
Convolution
  • conv2d
  • depthwise_conv2d
  • separable_conv2d
  • atrous_conv2d
  • conv2d_transpose
  • conv3d
Pooling
  • avg_pool
  • max_pool
  • max_pool_with_argmax
  • avg_pool3d
  • max_pool3d
Morphological filtering

Morphological operators are non-linear filters used in image processing.

  • dilation2d
  • erosion2d
Normalization
  • l2_normalize
  • local_response_normalization
  • sufficient_statistics
  • normalize_moments
  • moments
Losses
  • l2_loss
  • log_poisson_loss
Classification

TensorFlow provides several operations that help you perform classification.

  • sigmoid_cross_entropy_with_logits
  • softmax
  • log_softmax
  • softmax_cross_entropy_with_logits
  • sparse_softmax_cross_entropy_with_logits
  • weighted_cross_entropy_with_logits
Embeddings

TensorFlow provides library support for looking up values in embedding tensors.

  • embedding_lookup
  • embedding_lookup_sparse
Recurrent Neural Networks

TensorFlow provides a number of methods for constructing Recurrent Neural Networks. Most accept an RNNCell-subclassed object (see the documentation for tf.nn.rnn_cell).

  • dynamic_rnn
  • rnn
  • state_saving_rnn
  • bidirectional_rnn
Conectionist Temporal Classification (CTC)
  • ctc_loss
  • ctc_greedy_decoder
  • ctc_beam_search_decoder
Evaluation

The evaluation ops are useful for measuring the performance of a network. Since they are nondifferentiable, they are typically used at evaluation time.

  • top_k
  • in_top_k
Candidate Sampling

Do you want to train a multiclass or multilabel model with thousands or millions of output classes (for example, a language model with a large vocabulary)? Training with a full Softmax is slow in this case, since all of the classes are evaluated for every training example. Candidate Sampling training algorithms can speed up your step times by only considering a small randomly-chosen subset of contrastive classes (called candidates) for each batch of training examples.

Sampled Loss Functions

TensorFlow provides the following sampled loss functions for faster training.

  • nce_loss
  • sampled_softmax_loss
Candidate Samplers

TensorFlow provides the following samplers for randomly sampling candidate classes when using one of the sampled loss functions above.

  • uniform_candidate_sampler
  • log_uniform_candidate_sampler
  • learned_unigram_candidate_sampler
  • fixed_unigram_candidate_sampler
Miscellaneous candidate sampling utilities
  • Miscellaneous candidate sampling utilities
Other Functions and Classes
  • batch_normalization
  • depthwise_conv2d_native
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 讓座 公交車行至一站臺,一老年人匆忙而上,緩慢的坐在座位上,突然一句不耐煩的聲音響起“忘了給錢了”,轉(zhuǎn)而刺耳暴躁起...
    夜枝閱讀 251評論 0 1
  • 無意看到個新聞,就是說張智霖和袁詠儀這對恩愛的老夫妻花數(shù)百萬買車買包包享受生活,卻唯獨(dú)租房過了20年!這對隨時...
    妖媚兒閱讀 301評論 0 0
  • 闌夕聽雨閱讀 119評論 0 1
  • 政者,正也。子帥以正,孰敢不正? 《論語》 句意:政就是正的意思。如果你能帶頭走正道,誰還敢不行正道呢?
    xcy無名閱讀 3,277評論 0 0

友情鏈接更多精彩內(nèi)容