tensorflow::ops::LogSoftmax

#include <nn_ops.h>

Tính toán giá trị kích hoạt logarit softmax.

Bản tóm tắt

Với mỗi lô i và lớp j chúng ta có

logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • logits: 2 chiều với hình dạng [batch_size, num_classes] .

Trả về:

  • Output : Có cùng hình dạng với logits .

Hàm khởi tạo và hàm hủy

LogSoftmax (const :: tensorflow::Scope & scope, :: tensorflow::Input logits)

Thuộc tính công khai

logsoftmax
operation

Chức năng công cộng

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Thuộc tính công khai

logsoftmax

::tensorflow::Output logsoftmax

hoạt động

Operation operation

Chức năng công cộng

LogSoftmax

 LogSoftmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input logits
)

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const