Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::LRN::Attrs
#include <nn_ops.h>
Optional attribute setters for LRN.
Summary
Public functions
|
Alpha(float x)
|
A scale factor, usually positive.
|
Beta(float x)
|
An exponent.
|
Bias(float x)
|
An offset (usually positive to avoid dividing by 0).
|
DepthRadius(int64 x)
|
0-D.
|
Public attributes
alpha_
float tensorflow::ops::LRN::Attrs::alpha_ = 1.0f
beta_
float tensorflow::ops::LRN::Attrs::beta_ = 0.5f
bias_
float tensorflow::ops::LRN::Attrs::bias_ = 1.0f
depth_radius_
int64 tensorflow::ops::LRN::Attrs::depth_radius_ = 5
Public functions
Alpha
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Alpha(
float x
)
A scale factor, usually positive.
Defaults to 1
Beta
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Beta(
float x
)
An exponent.
Defaults to 0.5
Bias
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::Bias(
float x
)
An offset (usually positive to avoid dividing by 0).
Defaults to 1
DepthRadius
TF_MUST_USE_RESULT Attrs tensorflow::ops::LRN::Attrs::DepthRadius(
int64 x
)
0-D.
Half-width of the 1-D normalization window.
Defaults to 5
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-11-15 UTC.
[null,null,["Last updated 2021-11-15 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](/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](/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](/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](/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](/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"]]