Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: StringToHashBucketFast

#include <string_ops.h>

입력 Tensor의 각 문자열을 버킷 수만큼 해시 모드로 변환합니다.

요약

해시 함수는 프로세스 내의 문자열 내용에 대해 결정적이며 절대 변경되지 않습니다. 그러나 암호화에는 적합하지 않습니다. 이 기능은 CPU 시간이 부족하고 입력이 신뢰할 수 있거나 중요하지 않을 때 사용할 수 있습니다. 공격자가 모두 동일한 버킷에 해시하는 입력을 구성 할 위험이 있습니다. 이 문제를 방지하려면 tf.string_to_hash_bucket_strong 과 함께 강력한 해시 함수를 사용 tf.string_to_hash_bucket_strong .

인수 :

  • 범위 : 범위 개체
  • 입력 : 해시 버킷을 할당 할 문자열입니다.
  • num_buckets : 버킷 수.

보고:

  • Output : 입력 string_tensor 와 같은 모양의 Tensor .

생성자와 소멸자

StringToHashBucketFast (const :: tensorflow::Scope & scope, :: tensorflow::Input input, int64 num_buckets)

공용 속성

operation
output

공공 기능

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

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

StringToHashBucketFast

 StringToHashBucketFast(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  int64 num_buckets
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const