টেনসরফ্লো :: অপস:: এলআরএন

#include <nn_ops.h>

স্থানীয় প্রতিক্রিয়া স্বাভাবিককরণ.

সারসংক্ষেপ

4-ডি input টেনসরকে 1-ডি ভেক্টরের 3-ডি অ্যারে হিসাবে বিবেচনা করা হয় (শেষ মাত্রা বরাবর), এবং প্রতিটি ভেক্টর স্বাধীনভাবে স্বাভাবিক করা হয়। একটি প্রদত্ত ভেক্টরের মধ্যে, প্রতিটি উপাদানকে 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

বিস্তারিত জানার জন্য, ক্রিজেভস্কি এট আল।, গভীর কনভোল্যুশনাল নিউরাল নেটওয়ার্কের সাথে ইমেজনেট শ্রেণীবিভাগ (NIPS 2012) দেখুন।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • ইনপুট: 4-ডি।

ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs ):

  • গভীরতা_ব্যাসার্ধ: 0-D। 1-ডি স্বাভাবিককরণ উইন্ডোর অর্ধ-প্রস্থ।
  • পক্ষপাত: একটি অফসেট (সাধারণত 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

এলআরএন- এর জন্য ঐচ্ছিক বৈশিষ্ট্য নির্ধারণকারী।

পাবলিক বৈশিষ্ট্য

অপারেশন

Operation operation

আউটপুট

::tensorflow::Output output

পাবলিক ফাংশন

এলআরএন

 LRN(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

এলআরএন

 LRN(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const LRN::Attrs & attrs
)

নোড

::tensorflow::Node * node() const 

অপারেটর::টেনসরফ্লো::ইনপুট

 operator::tensorflow::Input() const 

অপারেটর::টেনসরফ্লো::আউটপুট

 operator::tensorflow::Output() const 

পাবলিক স্ট্যাটিক ফাংশন

আলফা

Attrs Alpha(
  float x
)

বেটা

Attrs Beta(
  float x
)

পক্ষপাত

Attrs Bias(
  float x
)

DepthRadius

Attrs DepthRadius(
  int64 x
)