tensorflow::ops::LRN
#include <nn_ops.h>
Локальная нормализация по ответу.
Краткое описание
4-мерный тензор input рассматривается как 3-мерный массив 1-мерных векторов (по последнему измерению), и каждый вектор нормализуется независимо. Внутри данного вектора каждый компонент делится на взвешенную, возведенную в квадрат сумму входов в depth_radius. Подробнее,
sqr_sum[a, b, c, d] =
sum(input[a, b, c, d - depth_radius : d + depth_radius + 1] ** 2)
output = input / (bias + alpha * sqr_sum) ** beta
Для получения подробностей см. Krizhevsky и др., Изображение классификация с помощью глубоких свёрточных нейронных сетей (NIPS 2012).
Аргументы:
- scope: Объект Scope
- input: 4-мерный.
Дополнительные атрибуты (см. Attrs):
- depth_radius: 0-мерный. Половина ширины окна нормализации по глубине.
- bias: Смещение (обычно положительное, чтобы избежать деления на 0).
- alpha: Коэффициент масштабирования, обычно положительный.
- beta: Показатель степени.
Возвращает:
-
Output: Результирующий тензор.
| Конструкторы и деструкторы | |
|---|---|
LRN(const ::tensorflow::Scope & scope, ::tensorflow::Input input) | |
LRN(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const LRN::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
Alpha(float x) | |
Beta(float x) | |
Bias(float x) | |
DepthRadius(int64 x) | |
| Структуры | |
|---|---|
| tensorflow::ops::LRN::Attrs | Дополнительные параметры установки атрибутов для LRN. |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Общедоступные функции
LRN
LRN( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
LRN
LRN( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const LRN::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Общедоступные статические функции
Alpha
Attrs Alpha( float x )
Beta
Attrs Beta( float x )
Bias
Attrs Bias( float x )
DepthRadius
Attrs DepthRadius( int64 x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/l-r-n