tensorflow::ops::Relu

#include <nn_ops.h>

คำนวณเส้นตรงที่แก้ไขแล้ว: max(features, 0)

สรุป

ดูเพิ่มเติมได้ที่: https://en.wikipedia.org/wiki/Rectifier_(neural_networks) ตัวอย่างการใช้งาน: tf.nn.relu([-2., 0., -0., 3.]).numpy() array([ 0., 0., -0., 3.], dtype=float32)

ข้อโต้แย้ง:

การส่งคืนสินค้า:

  • Output : เทนเซอร์การกระตุ้น

ตัวสร้างและตัวทำลาย

Relu (const :: tensorflow::Scope & scope, :: tensorflow::Input features)

คุณลักษณะสาธารณะ

activations
operation

หน้าที่สาธารณะ

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

คุณลักษณะสาธารณะ

การเปิดใช้งาน

::tensorflow::Output activations

การดำเนินการ

Operation operation

หน้าที่สาธารณะ

เรลู

 Relu(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input features
)

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const