텐서플로우:: 작전:: StringToHashBucketFast

#include <string_ops.h>

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

요약

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

인수:

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

보고:

생성자와 소멸자

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 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const