เทนเซอร์โฟลว์:: ออปส์:: พอว์
#include <math_ops.h>คำนวณค่ากำลังของค่าหนึ่งเทียบกับอีกค่าหนึ่ง
สรุป
เมื่อกำหนดเทนเซอร์ x และเทนเซอร์ y แล้ว การดำเนินการนี้จะคำนวณค่าต่อไปนี้ \(x^y\) สำหรับองค์ประกอบที่สอดคล้องกันใน x และ y ตัวอย่างเช่น:
# tensor 'x' is [[2, 2]], [3, 3]] # tensor 'y' is [[8, 16], [2, 3]] tf.pow(x, y) ==> [[256, 65536], [9, 27]]
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
การส่งคืนสินค้า:
-
Output: เทนเซอร์ z
ตัวสร้างและตัวทำลาย | |
|---|---|
Pow (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
z | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
z
::tensorflow::Output z
หน้าที่สาธารณะ
พลัง
Pow( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const