tensorflow:: אופס:: LRN

#include <nn_ops.h>

נורמליזציה של תגובה מקומית.

סיכום

טנזור input -4-D מטופל כמערך 3-D של וקטורים 1-D (לאורך הממד האחרון), וכל וקטור מנורמל באופן עצמאי. בתוך וקטור נתון, כל רכיב מחולק בסכום המשוקלל, בריבוע של תשומות בתוך 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 וחב', סיווג ImageNet עם רשתות עצביות קונבולוציוניות עמוקות (NIPS 2012) .

טיעונים:

  • scope: אובייקט Scope
  • קלט: 4-D.

מאפיינים אופציונליים (ראה Attrs ):

  • depth_radius: 0-D. חצי רוחב של חלון הנורמליזציה ה-1-D.
  • הטיה: קיזוז (בדרך כלל חיובי כדי להימנע מחלוקה ב-0).
  • אלפא: גורם בקנה מידה, בדרך כלל חיובי.
  • בטא: מעריך.

החזרות:

  • 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

תְפוּקָה

::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
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

אלפא

Attrs Alpha(
  float x
)

בטא

Attrs Beta(
  float x
)

הֲטָיָה

Attrs Bias(
  float x
)

DepthRadius

Attrs DepthRadius(
  int64 x
)