tensorflow::ops::FusedBatchNormGradV3
#include <nn_ops.h>Độ dốc dùng cho chuẩn hóa theo lô.
Bản tóm tắt
Lưu ý rằng kích thước của Tensor 4D được xác định bởi "NHWC" hoặc "NCHW". Kích thước của Tensor 1D trùng với chiều C của Tensor 4D.
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- y_backprop: Một Tensor 4 chiều biểu thị đạo hàm theo trục y.
- x: Một Tensor 4 chiều dùng cho dữ liệu đầu vào.
- scale: Một Tensor 1D dùng làm hệ số tỷ lệ, để điều chỉnh tỷ lệ của x đã được chuẩn hóa.
- reserve_space_1: Khi is_training là True, một Tensor 1D chứa giá trị trung bình của batch được tính toán để tái sử dụng trong quá trình tính toán gradient. Khi is_training là False, một Tensor 1D chứa giá trị trung bình của population để tái sử dụng trong cả quá trình tính toán gradient bậc 1 và bậc 2.
- reserve_space_2: Khi is_training là True, một Tensor 1D cho phương sai của lô được tính toán (phương sai đảo ngược trong trường hợp cuDNN) sẽ được sử dụng lại trong tính toán gradient. Khi is_training là False, một Tensor 1D cho phương sai của quần thể sẽ được sử dụng lại trong cả tính toán gradient bậc 1 và bậc 2.
- reserve_space_3: Khi is_training là True, một Tensor 1D sẽ được tạo để lưu trữ một số kết quả trung gian và tái sử dụng chúng trong quá trình tính toán đạo hàm. Khi is_training là False, một Tensor rỗng giả sẽ được tạo ra.
Các thuộc tính tùy chọn (xem Attrs ):
- epsilon: Một số thực nhỏ được cộng thêm vào phương sai của x.
- data_format: Định dạng dữ liệu cho y_backprop, x, x_backprop. Có thể là "NHWC" (mặc định) hoặc "NCHW".
- is_training: Một giá trị boolean cho biết thao tác này dành cho huấn luyện (mặc định) hay suy luận.
Trả về:
-
Outputx_backprop: Một Tensor 4 chiều biểu thị đạo hàm theo x. -
Outputscale_backprop: Một Tensor 1D biểu thị độ dốc theo tỷ lệ. -
Outputoffset_backprop: Một Tensor 1D biểu thị đạo hàm theo offset. -
Outputreserve_space_4: Chỗ giữ chỗ không sử dụng để khớp với giá trị trung bình đầu vào trong FusedBatchNorm . -
Outputreserve_space_5: Chỗ giữ chỗ chưa sử dụng để khớp với đầu vào phương sai trong FusedBatchNorm .
Hàm khởi tạo và hàm hủy | |
|---|---|
FusedBatchNormGradV3 (const :: tensorflow::Scope & scope, :: tensorflow::Input y_backprop, :: tensorflow::Input x, :: tensorflow::Input scale, :: tensorflow::Input reserve_space_1, :: tensorflow::Input reserve_space_2, :: tensorflow::Input reserve_space_3) | |
FusedBatchNormGradV3 (const :: tensorflow::Scope & scope, :: tensorflow::Input y_backprop, :: tensorflow::Input x, :: tensorflow::Input scale, :: tensorflow::Input reserve_space_1, :: tensorflow::Input reserve_space_2, :: tensorflow::Input reserve_space_3, const FusedBatchNormGradV3::Attrs & attrs) |
Thuộc tính công khai | |
|---|---|
offset_backprop | |
operation | |
reserve_space_4 | |
reserve_space_5 | |
scale_backprop | |
x_backprop | |
Các hàm tĩnh công khai | |
|---|---|
DataFormat (StringPiece x) | |
Epsilon (float x) | |
IsTraining (bool x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::FusedBatchNormGradV3::Attrs | Các thiết lập thuộc tính tùy chọn cho FusedBatchNormGradV3 . |
Thuộc tính công khai
offset_backprop
::tensorflow::Output offset_backprop
hoạt động
Operation operation
không gian dự trữ_4
::tensorflow::Output reserve_space_4
không gian dự trữ 5
::tensorflow::Output reserve_space_5
scale_backprop
::tensorflow::Output scale_backprop
x_backprop
::tensorflow::Output x_backprop
Chức năng công cộng
FusedBatchNormGradV3
FusedBatchNormGradV3( const ::tensorflow::Scope & scope, ::tensorflow::Input y_backprop, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input reserve_space_1, ::tensorflow::Input reserve_space_2, ::tensorflow::Input reserve_space_3 )
FusedBatchNormGradV3
FusedBatchNormGradV3( const ::tensorflow::Scope & scope, ::tensorflow::Input y_backprop, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input reserve_space_1, ::tensorflow::Input reserve_space_2, ::tensorflow::Input reserve_space_3, const FusedBatchNormGradV3::Attrs & attrs )
Các hàm tĩnh công khai
Định dạng dữ liệu
Attrs DataFormat( StringPiece x )
Epsilon
Attrs Epsilon( float x )
Đào tạo
Attrs IsTraining( bool x )