Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: LRN:: Attr
#include <nn_ops.h>
Bộ cài đặt thuộc tính tùy chọn cho LRN .
Bản tóm tắt
Chức năng công cộng |
---|
Alpha (float x) | Một yếu tố quy mô, thường là tích cực. |
Beta (float x) | Một số mũ. |
Bias (float x) | Một phần bù (thường là dương để tránh chia cho 0). |
DepthRadius (int64 x) | 0-D. |
Thuộc tính công khai
alpha_
float tensorflow::ops::LRN::Attrs::alpha_ = 1.0f
beta_
float tensorflow::ops::LRN::Attrs::beta_ = 0.5f
thiên vị_
float tensorflow::ops::LRN::Attrs::bias_ = 1.0f
độ sâu_bán kính_
int64 tensorflow::ops::LRN::Attrs::depth_radius_ = 5
Chức năng công cộng
Alpha
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Alpha(
float x
)
Một yếu tố quy mô, thường là tích cực.
Mặc định là 1
bản thử nghiệm
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Beta(
float x
)
Một số mũ.
Mặc định là 0,5
thiên vị
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Bias(
float x
)
Một phần bù (thường là dương để tránh chia cho 0).
Mặc định là 1
Độ sâu bán kính
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::DepthRadius(
int64 x
)
0-D.
Một nửa chiều rộng của cửa sổ chuẩn hóa 1-D.
Mặc định là 5
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::LRN::Attrs Struct Reference\n\ntensorflow::ops::LRN::Attrs\n===========================\n\n`#include \u003cnn_ops.h\u003e`\n\nOptional attribute setters for [LRN](/versions/r2.3/api_docs/cc/class/tensorflow/ops/l-r-n#classtensorflow_1_1ops_1_1_l_r_n).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------|---------|\n| [alpha_](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1a96e4ae15c569f3834c4dc592d059975e)` = 1.0f` | `float` |\n| [beta_](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1ab73612c6eb66d4709bdf6a058fd0c8bd)` = 0.5f` | `float` |\n| [bias_](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1ad01ed0552bcde45fa4286039c403c40b)` = 1.0f` | `float` |\n| [depth_radius_](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1a93ddf2fa1f86831474fe73832c003868)` = 5` | `int64` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Alpha](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1a9d252abcaa1d05d285caace0a2754d2a)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/l-r-n/attrs#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs) A scale factor, usually positive. |\n| [Beta](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1af7c2036a24ffc2d89f2a589d8e7348be)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/l-r-n/attrs#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs) An exponent. |\n| [Bias](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1a76bb974a64ea15024227c37d18b6f6f1)`(float x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/l-r-n/attrs#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs) An offset (usually positive to avoid dividing by 0). |\n| [DepthRadius](#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs_1aaea5f7c6560e9158ff50a68fbd7e7182)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/l-r-n/attrs#structtensorflow_1_1ops_1_1_l_r_n_1_1_attrs) 0-D. |\n\nPublic attributes\n-----------------\n\n### alpha_\n\n```scdoc\nfloat tensorflow::ops::LRN::Attrs::alpha_ = 1.0f\n``` \n\n### beta_\n\n```scdoc\nfloat tensorflow::ops::LRN::Attrs::beta_ = 0.5f\n``` \n\n### bias_\n\n```scdoc\nfloat tensorflow::ops::LRN::Attrs::bias_ = 1.0f\n``` \n\n### depth_radius_\n\n```scdoc\nint64 tensorflow::ops::LRN::Attrs::depth_radius_ = 5\n``` \n\nPublic functions\n----------------\n\n### Alpha\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Alpha(\n float x\n)\n``` \nA scale factor, usually positive.\n\nDefaults to 1 \n\n### Beta\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Beta(\n float x\n)\n``` \nAn exponent.\n\nDefaults to 0.5 \n\n### Bias\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Bias(\n float x\n)\n``` \nAn offset (usually positive to avoid dividing by 0).\n\nDefaults to 1 \n\n### DepthRadius\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::DepthRadius(\n int64 x\n)\n``` \n0-D.\n\nHalf-width of the 1-D normalization window.\n\nDefaults to 5"]]