tensorflow::ops::ParameterizedTruncatedNormal
#include <random_ops.h>Hàm này xuất ra các giá trị ngẫu nhiên từ phân phối chuẩn.
Bản tóm tắt
Mỗi tham số có thể là một
giá trị vô hướng áp dụng cho toàn bộ đầu ra, hoặc một vectơ có độ dài hình dạng[0] lưu trữ các tham số cho mỗi lô.
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- shape: Hình dạng của tensor đầu ra. Các lô được đánh số theo chiều thứ 0.
- nghĩa là: Thông số trung bình của mỗi lô.
- stdevs: Tham số độ lệch chuẩn của mỗi lô. Phải lớn hơn 0.
- minvals: Ngưỡng cắt tối thiểu. Có thể là -vô cực.
- maxvals: Giá trị cắt tối đa. Có thể là +vô cực, và phải lớn hơn minval cho mỗi lô.
Các thuộc tính tùy chọn (xem Attrs ):
- seed: Nếu
seedhoặcseed2được đặt khác 0, bộ tạo số ngẫu nhiên sẽ được gieo hạt bằng seed đã cho. Nếu không, nó sẽ được gieo hạt bằng một seed ngẫu nhiên. - seed2: Một seed thứ hai để tránh xung đột seed.
Trả về:
-
Output: Một ma trận có kích thước num_batches x samples_per_batch, được điền bằng các giá trị phân phối chuẩn bị cắt cụt ngẫu nhiên dựa trên các tham số cho mỗi hàng.
Hàm khởi tạo và hàm hủy | |
|---|---|
ParameterizedTruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input means, :: tensorflow::Input stdevs, :: tensorflow::Input minvals, :: tensorflow::Input maxvals) | |
ParameterizedTruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input means, :: tensorflow::Input stdevs, :: tensorflow::Input minvals, :: tensorflow::Input maxvals, const ParameterizedTruncatedNormal::Attrs & attrs) |
Thuộc tính công khai | |
|---|---|
operation | |
output | |
Chức năng công cộng | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Các hàm tĩnh công khai | |
|---|---|
Seed (int64 x) | |
Seed2 (int64 x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::ParameterizedTruncatedNormal::Attrs | Các thiết lập thuộc tính tùy chọn cho ParameterizedTruncatedNormal . |
Thuộc tính công khai
hoạt động
Operation operation
đầu ra
::tensorflow::Output output
Chức năng công cộng
Tham số hóa bị cắt bớt bình thường
ParameterizedTruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input means, ::tensorflow::Input stdevs, ::tensorflow::Input minvals, ::tensorflow::Input maxvals )
Tham số hóa bị cắt bớt bình thường
ParameterizedTruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input means, ::tensorflow::Input stdevs, ::tensorflow::Input minvals, ::tensorflow::Input maxvals, const ParameterizedTruncatedNormal::Attrs & attrs )
nút
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Các hàm tĩnh công khai
Hạt giống
Attrs Seed( int64 x )
Hạt giống2
Attrs Seed2( int64 x )