تدفق التوتر:: العمليات:: تنصهر باتشنورمV2
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
#include <nn_ops.h>
التطبيع دفعة.
ملخص
لاحظ أنه يتم تحديد حجم Tensors 4D إما بواسطة "NHWC" أو "NCHW". يتطابق حجم Tensors 1D مع البعد C لل Tensors 4D.
الحجج:
- النطاق: كائن النطاق
- x: موتر رباعي الأبعاد لإدخال البيانات.
- مقياس: موتر 1D لعامل القياس، لقياس x المقيس.
- الإزاحة: موتر أحادي الأبعاد للإزاحة، للتحول إلى x المقيس.
- يعني: موتر 1D لمتوسط السكان. تستخدم للاستدلال فقط؛ يجب أن تكون فارغة للتدريب.
- التباين: موتر 1D لتباين السكان. تستخدم للاستدلال فقط؛ يجب أن تكون فارغة للتدريب.
السمات الاختيارية (انظر Attrs
):
- إبسيلون: رقم عائم صغير يضاف إلى تباين x.
- data_format: تنسيق البيانات لـ x وy. إما "NHWC" (افتراضي) أو "NCHW".
- is_training: القيمة المنطقية للإشارة إلى العملية مخصصة للتدريب (افتراضي) أو للاستدلال.
العوائد:
-
Output
y: موتر رباعي الأبعاد لبيانات الإخراج. -
Output
Batch_mean: موتر 1D لمتوسط الدفعة المحسوبة، ليتم استخدامه بواسطة TensorFlow لحساب متوسط التشغيل. -
Output
Batch_variance: موتر أحادي الأبعاد لتباين الدُفعة المحسوب، ليتم استخدامه بواسطة TensorFlow لحساب التباين قيد التشغيل. -
Output
Reserve_space_1: موتر 1D للدفعة المحسوبة يعني إعادة استخدامه في حساب التدرج. -
Output
Reserve_space_2: موتر أحادي الأبعاد لتباين الدُفعة المحسوب (التباين المقلوب في حالة cuDNN)، ليتم إعادة استخدامه في حساب التدرج.
البنائين والمدمرين | |
---|---|
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 . |
الصفات العامة
Batch_mean
::tensorflow::Output batch_mean
Batch_variance
::tensorflow::Output batch_variance
عملية
Operation operation
Reserve_space_1
::tensorflow::Output reserve_space_1
Reserve_space_2
::tensorflow::Output reserve_space_2
ذ
::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
)