@Namespace(value="tensorflow::thread") @NoOffset @Properties(inherit=tensorflow.class) public class ThreadPool extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ThreadPool(Env env,
BytePointer name,
int num_threads) |
ThreadPool(Env env,
String name,
int num_threads) |
ThreadPool(Env env,
ThreadOptions thread_options,
BytePointer name,
int num_threads) |
ThreadPool(Env env,
ThreadOptions thread_options,
BytePointer name,
int num_threads,
boolean low_latency_hint) |
ThreadPool(Env env,
ThreadOptions thread_options,
BytePointer name,
int num_threads,
boolean low_latency_hint,
Pointer allocator) |
ThreadPool(Env env,
ThreadOptions thread_options,
String name,
int num_threads) |
ThreadPool(Env env,
ThreadOptions thread_options,
String name,
int num_threads,
boolean low_latency_hint) |
ThreadPool(Env env,
ThreadOptions thread_options,
String name,
int num_threads,
boolean low_latency_hint,
Pointer allocator) |
ThreadPool(Pointer user_threadpool) |
Modifier and Type | Method and Description |
---|---|
Pointer |
AsEigenThreadPool() |
int |
CurrentThreadId() |
int |
NumShardsUsedByTransformRangeConcurrently(long block_size,
long total) |
int |
NumThreads() |
void |
ParallelFor(long total,
long cost_per_unit,
tensorflow.ForFn fn) |
void |
ParallelForWithWorkerId(long total,
long cost_per_unit,
tensorflow.ParallelForFn fn) |
void |
Schedule(tensorflow.Fn fn) |
void |
ScheduleWithHint(tensorflow.Fn fn,
int start,
int _limit) |
void |
SetStealPartitions(IntIntPairVector partitions) |
void |
TransformRangeConcurrently(long block_size,
long total,
tensorflow.ForFn fn) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ThreadPool(Env env, @Const @ByRef ThreadOptions thread_options, @StdString BytePointer name, int num_threads, @Cast(value="bool") boolean low_latency_hint, @Cast(value="Eigen::Allocator*") Pointer allocator)
public ThreadPool(Env env, @Const @ByRef ThreadOptions thread_options, @StdString BytePointer name, int num_threads, @Cast(value="bool") boolean low_latency_hint)
public ThreadPool(Env env, @Const @ByRef ThreadOptions thread_options, @StdString String name, int num_threads, @Cast(value="bool") boolean low_latency_hint, @Cast(value="Eigen::Allocator*") Pointer allocator)
public ThreadPool(Env env, @Const @ByRef ThreadOptions thread_options, @StdString String name, int num_threads, @Cast(value="bool") boolean low_latency_hint)
public ThreadPool(Env env, @StdString BytePointer name, int num_threads)
public ThreadPool(Env env, @StdString String name, int num_threads)
public ThreadPool(Env env, @Const @ByRef ThreadOptions thread_options, @StdString BytePointer name, int num_threads)
public ThreadPool(Env env, @Const @ByRef ThreadOptions thread_options, @StdString String name, int num_threads)
public void Schedule(@ByVal tensorflow.Fn fn)
public void SetStealPartitions(@Const @ByRef IntIntPairVector partitions)
public void ScheduleWithHint(@ByVal tensorflow.Fn fn, int start, int _limit)
public void TransformRangeConcurrently(@Cast(value="const tensorflow::int64") long block_size, @Cast(value="const tensorflow::int64") long total, @Const @ByRef tensorflow.ForFn fn)
public int NumShardsUsedByTransformRangeConcurrently(@Cast(value="const tensorflow::int64") long block_size, @Cast(value="const tensorflow::int64") long total)
public void ParallelFor(@Cast(value="tensorflow::int64") long total, @Cast(value="tensorflow::int64") long cost_per_unit, @ByVal tensorflow.ForFn fn)
public void ParallelForWithWorkerId(@Cast(value="tensorflow::int64") long total, @Cast(value="tensorflow::int64") long cost_per_unit, @Const @ByRef tensorflow.ParallelForFn fn)
public int NumThreads()
public int CurrentThreadId()
Copyright © 2022. All rights reserved.