@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.StringToHashBucketStrong extends Pointer
key
defines the key of the hash function. key is an array of 2 elements.
A strong hash is important when inputs may be malicious, e.g. URLs with
additional components. Adversaries could try to make their inputs hash to the
same bucket for a denial-of-service attack or to skew the results. A strong
hash prevents this by making it difficult, if not infeasible, to compute inputs
that hash to the same bucket. This comes at a cost of roughly 4x higher compute
time than tf.string_to_hash_bucket_fast.
Arguments:
* scope: A Scope object
* input: The strings to assign a hash bucket.
* num_buckets: The number of buckets.
* key: The key for the keyed hash function passed as a list of two uint64
elements.
Returns:
* Output: A Tensor of the same shape as the input string_tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
StringToHashBucketStrong(Pointer p)
Pointer cast constructor.
|
StringToHashBucketStrong(tensorflow.Scope scope,
tensorflow.Input input,
long num_buckets,
int... key) |
StringToHashBucketStrong(tensorflow.Scope scope,
tensorflow.Input input,
long num_buckets,
IntBuffer key) |
StringToHashBucketStrong(tensorflow.Scope scope,
tensorflow.Input input,
long num_buckets,
IntPointer key) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.StringToHashBucketStrong |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.StringToHashBucketStrong |
output(tensorflow.Output output) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic StringToHashBucketStrong(Pointer p)
Pointer.Pointer(Pointer).public StringToHashBucketStrong(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @Cast(value="tensorflow::int64") long num_buckets, @tensorflow.ArraySlice IntPointer key)
public StringToHashBucketStrong(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @Cast(value="tensorflow::int64") long num_buckets, @tensorflow.ArraySlice IntBuffer key)
public StringToHashBucketStrong(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @Cast(value="tensorflow::int64") long num_buckets, @tensorflow.ArraySlice int... key)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByRef public tensorflow.Operation operation()
public tensorflow.StringToHashBucketStrong operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.StringToHashBucketStrong output(tensorflow.Output output)
Copyright © 2019. All rights reserved.