เทนเซอร์โฟลว์ :: ops :: FusedBatchNormV2

#include <nn_ops.h>

การทำให้เป็นมาตรฐานแบทช์

สรุป

โปรดทราบว่าขนาดของ 4D Tensors ถูกกำหนดโดย "NHWC" หรือ "NCHW" ขนาดของ 1D Tensors ตรงกับมิติ C ของ 4D Tensors

อาร์กิวเมนต์:

  • ขอบเขต: วัตถุ ขอบเขต
  • x: 4D Tensor สำหรับข้อมูลอินพุต
  • สเกล: A 1D Tensor สำหรับสเกลแฟคเตอร์เพื่อปรับขนาด x ที่เป็นมาตรฐาน
  • offset: A 1D Tensor สำหรับออฟเซ็ตเพื่อเปลี่ยนเป็น x ปกติ
  • ค่าเฉลี่ย: A 1D Tensor สำหรับค่าเฉลี่ยประชากร ใช้เพื่อการอนุมานเท่านั้น ต้องว่างสำหรับการฝึกอบรม
  • ความแปรปรวน: A 1D Tensor สำหรับความแปรปรวนของประชากร ใช้เพื่อการอนุมานเท่านั้น ต้องว่างสำหรับการฝึกอบรม

แอตทริบิวต์เสริม (ดู Attrs ):

  • epsilon: จำนวนทศนิยมขนาดเล็กที่เพิ่มเข้ากับความแปรปรวนของ x
  • data_format: รูปแบบข้อมูลสำหรับ x และ y "NHWC" (ค่าเริ่มต้น) หรือ "NCHW"
  • is_training: ค่าบูลเพื่อระบุการดำเนินการสำหรับการฝึกอบรม (ค่าเริ่มต้น) หรือการอนุมาน

ผลตอบแทน:

  • Output y: 4D Tensor สำหรับข้อมูลเอาต์พุต
  • Output batch_mean: 1D Tensor สำหรับค่าเฉลี่ยแบตช์ที่คำนวณได้ซึ่ง TensorFlow จะใช้เพื่อคำนวณค่าเฉลี่ยที่กำลังทำงานอยู่
  • Output batch_variance: 1D Tensor สำหรับผลต่างแบตช์ที่คำนวณได้ซึ่ง TensorFlow จะใช้เพื่อคำนวณความแปรปรวนที่กำลังทำงานอยู่
  • Output reserve_space_1: 1D Tensor สำหรับค่าเฉลี่ยแบตช์ที่คำนวณเพื่อนำกลับมาใช้ในการคำนวณการไล่ระดับสี
  • Output reserve_space_2: 1D Tensor สำหรับผลต่างแบตช์ที่คำนวณได้ (ความแปรปรวนกลับด้านในกรณี 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)
ExponentialAvgFactor (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
)

ฟังก์ชั่นคงที่สาธารณะ

DataFormat

Attrs DataFormat(
  StringPiece x
)

เอปไซลอน

Attrs Epsilon(
  float x
)

ExponentialAvgFactor

Attrs ExponentialAvgFactor(
  float x
)

IsTraining

Attrs IsTraining(
  bool x
)