tensorflow:: ops:: FusedBatchNormV2

#include <nn_ops.h>

التسوية الدفعية.

ملخص

لاحظ أن حجم الموترات رباعية الأبعاد يُحدد إما بـ "NHWC" أو "NCHW". ويتطابق حجم الموترات أحادية الأبعاد مع البُعد C للموترات رباعية الأبعاد.

الحجج:

  • النطاق: كائن النطاق
  • x: موتر رباعي الأبعاد لبيانات الإدخال.
  • المقياس: موتر أحادي البعد لعامل القياس، لتغيير مقياس x المعياري.
  • الإزاحة: موتر أحادي البعد للإزاحة، للانتقال إلى x المعياري.
  • المتوسط: موتر أحادي البعد لمتوسط ​​المجتمع. يُستخدم للاستدلال فقط؛ يجب أن يكون فارغًا للتدريب.
  • التباين: موتر أحادي البعد لتباين المجتمع. يُستخدم للاستدلال فقط؛ يجب أن يكون فارغًا للتدريب.

السمات الاختيارية (انظر Attrs ):

  • إبسيلون: عدد عشري صغير يُضاف إلى تباين x.
  • data_format: تنسيق البيانات لـ x و y. إما "NHWC" (الافتراضي) أو "NCHW".
  • is_training: قيمة منطقية تشير إلى أن العملية مخصصة للتدريب (افتراضي) أو الاستدلال.

المرتجعات:

  • Output y: موتر رباعي الأبعاد لبيانات الإخراج.
  • Output batch_mean: A 1D Tensor for the uctated batch mean, to be used by TensorFlow for the account running mean.
  • Output batch_variance: A 1D Tensor for the computed batch variance, to be used by TensorFlow for account the running variance.
  • Output reserve_space_1: A 1D Tensor for the computed batch mean, to be reused in the gradient accountation.
  • Output reserve_space_2: A 1D Tensor for the yucated batch variance (inverted variance in the cuDNN case), to be reused in the gradient account.

البناة والمدمرون

FusedBatchNormV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input scale, :: tensorflow::Input offset, :: tensorflow::Input mean, :: tensorflow::Input variance)
FusedBatchNormV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input scale, :: tensorflow::Input offset, :: tensorflow::Input mean, :: tensorflow::Input variance, const FusedBatchNormV2::Attrs & attrs)

السمات العامة

batch_mean
batch_variance
operation
reserve_space_1
reserve_space_2
y

الدوال الثابتة العامة

DataFormat (StringPiece x)
Epsilon (float x)
IsTraining (bool x)

الهياكل

tensorflow:: ops:: FusedBatchNormV2:: Attrs

أدوات تعيين السمات الاختيارية لـ FusedBatchNormV2 .

السمات العامة

متوسط ​​الدفعة

::tensorflow::Output batch_mean

تباين الدفعة

::tensorflow::Output batch_variance

عملية

Operation operation

حجز_المساحة_1

::tensorflow::Output reserve_space_1

حجز_المساحة_2

::tensorflow::Output reserve_space_2

y

::tensorflow::Output y

الوظائف العامة

FusedBatchNormV2

 FusedBatchNormV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input scale,
  ::tensorflow::Input offset,
  ::tensorflow::Input mean,
  ::tensorflow::Input variance
)

FusedBatchNormV2

 FusedBatchNormV2(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input scale,
  ::tensorflow::Input offset,
  ::tensorflow::Input mean,
  ::tensorflow::Input variance,
  const FusedBatchNormV2::Attrs & attrs
)

الدوال الثابتة العامة

تنسيق البيانات

Attrs DataFormat(
  StringPiece x
)

إبسيلون

Attrs Epsilon(
  float x
)

التدريب

Attrs IsTraining(
  bool x
)