tensorflow::ops::StringToHashBucket
#include <string_ops.h>แปลงสตริงแต่ละสตริงใน เทนเซอร์ อินพุตให้เป็นค่าแฮชที่หารด้วยจำนวนบัคเก็ตตามที่กำหนด
สรุป
ฟังก์ชันแฮชนั้นสามารถคำนวณผลลัพธ์ได้อย่างแน่นอนโดยขึ้นอยู่กับเนื้อหาของสตริงภายในกระบวนการ
โปรดทราบว่าฟังก์ชันแฮชอาจเปลี่ยนแปลงได้เป็นระยะ ฟังก์ชันนี้จะถูกยกเลิกในอนาคต และขอแนะนำให้ใช้ tf.string_to_hash_bucket_fast() หรือ tf.string_to_hash_bucket_strong() แทน
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- num_buckets: จำนวนบัคเก็ต
การส่งคืนสินค้า:
ตัวสร้างและตัวทำลาย | |
|---|---|
StringToHashBucket (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor, int64 num_buckets) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
สตริงไปยังแฮชบัคเก็ต
StringToHashBucket( const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, int64 num_buckets )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const