@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class DeviceBase extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
DeviceBase.CpuWorkerThreads |
static class |
DeviceBase.GpuDeviceInfo |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DeviceBase(Env env) |
DeviceBase(Pointer p)
Pointer cast constructor.
|
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 DeviceBase(Pointer p)
Pointer(Pointer)
.public DeviceBase(Env env)
public Env env()
@Cast(value="bool") public boolean RequiresRecordingAccessedTensors()
public void set_tensorflow_cpu_worker_threads(DeviceBase.CpuWorkerThreads t)
@Const public DeviceBase.CpuWorkerThreads tensorflow_cpu_worker_threads()
public void set_tensorflow_gpu_device_info(DeviceBase.GpuDeviceInfo g)
@Const public DeviceBase.GpuDeviceInfo tensorflow_gpu_device_info()
public ThreadPool tensorflow_device_thread_pool()
public void set_eigen_cpu_device(ThreadPoolDevice d)
public Allocator GetAllocator(@ByVal AllocatorAttributes arg0)
public Allocator GetStepAllocator(@ByVal AllocatorAttributes attr, ResourceMgr arg1)
public Allocator GetScopedAllocator(@ByVal AllocatorAttributes attr, @Cast(value="tensorflow::int64") long step_id)
public ScopedAllocatorMgr GetScopedAllocatorMgr()
@Const public ThreadPoolDevice eigen_cpu_device()
public PerOpGpuDevice MakeGpuDevice()
public DeviceBase UnderlyingDevice()
@ByVal public Status ReinitializeGpuDevice(OpKernelContext arg0, PerOpGpuDevice arg1, DeviceContext arg2, Allocator arg3)
@Const @ByRef public DeviceAttributes attributes()
@StdString public BytePointer name()
@ByVal public Status MakeTensorFromProto(@Const @ByRef TensorProto tensor_proto, @Const @ByVal AllocatorAttributes alloc_attrs, Tensor tensor)
@Cast(value="tensorflow::uint64") public long SafeAllocFrontier(@Cast(value="tensorflow::uint64") long old_value)
Copyright © 2022. All rights reserved.