tensorflow::ops::Softmax
#include <nn_ops.h>Tính toán các giá trị kích hoạt softmax.
Bản tóm tắt
Với mỗi lô i và lớp j chúng ta có
$$softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))$$
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ớilogits.
Hàm khởi tạo và hàm hủy | |
|---|---|
Softmax (const :: tensorflow::Scope & scope, :: tensorflow::Input logits) |
Thuộc tính công khai | |
|---|---|
operation | |
softmax | |
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
hoạt động
Operation operation
tối đa mềm
::tensorflow::Output softmax
Chức năng công cộng
Softmax
Softmax( 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