Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::LogSoftmax
#include <nn_ops.h>
Computes log softmax activations.
Summary
For each batch i
and class j
we have
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
Args:
- scope: A Scope object
- logits: 2-D with shape
[batch_size, num_classes]
.
Returns:
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::LogSoftmax Class Reference\n\ntensorflow::ops::LogSoftmax\n===========================\n\n`#include \u003cnn_ops.h\u003e`\n\nComputes log softmax activations.\n\nSummary\n-------\n\nFor each batch `i` and class `j` we have \n\n```transact-sql\nlogsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))\n```\n\n\u003cbr /\u003e\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- logits: 2-D with shape `[batch_size, num_classes]`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): Same shape as `logits`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [LogSoftmax](#classtensorflow_1_1ops_1_1_log_softmax_1a73483652ac6fcd6e2162f224c5459235)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` logits)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [logsoftmax](#classtensorflow_1_1ops_1_1_log_softmax_1aaa7ca17002b410b0a6992c5f604a13a6) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_log_softmax_1acb2eb968de24da07c71196bfd2da5e36) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_log_softmax_1a1ef7bed8e2017ceda2891e1568c32072)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_log_softmax_1ae15a3807bd29485ca7e6c0a0408bd656)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_log_softmax_1a38da28934ec15aab2813d6d074a25386)`() const ` | |\n\nPublic attributes\n-----------------\n\n### logsoftmax\n\n```text\n::tensorflow::Output logsoftmax\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### LogSoftmax\n\n```gdscript\n LogSoftmax(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input logits\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]