@Namespace(value="tensorflow") public static class tensorflow.DeviceContext extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
DeviceContext()
Default native constructor.
|
DeviceContext(long size)
Native array allocator.
|
DeviceContext(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CopyCPUTensorToDevice(tensorflow.Tensor cpu_tensor,
tensorflow.Device device,
tensorflow.Tensor device_tensor,
Pointer done) |
void |
CopyDeviceTensorToCPU(tensorflow.Tensor device_tensor,
BytePointer tensor_name,
tensorflow.Device device,
tensorflow.Tensor cpu_tensor,
Pointer done) |
void |
CopyDeviceTensorToCPU(tensorflow.Tensor device_tensor,
String tensor_name,
tensorflow.Device device,
tensorflow.Tensor cpu_tensor,
Pointer done) |
void |
MaintainLifetimeOnStream(tensorflow.Tensor t,
tensorflow.Stream stream) |
tensorflow.DeviceContext |
position(long position) |
tensorflow.Stream |
stream() |
tensorflow.Status |
ThenExecute(tensorflow.Device device,
tensorflow.Stream stream,
tensorflow.Fn func) |
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, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic DeviceContext()
public DeviceContext(long size)
Pointer.position(long).public DeviceContext(Pointer p)
Pointer.Pointer(Pointer).public tensorflow.DeviceContext position(long position)
public tensorflow.Stream stream()
public void MaintainLifetimeOnStream(@Const tensorflow.Tensor t, tensorflow.Stream stream)
public void CopyCPUTensorToDevice(@Const tensorflow.Tensor cpu_tensor, tensorflow.Device device, tensorflow.Tensor device_tensor, @ByVal @Cast(value="tensorflow::StatusCallback*") Pointer done)
public void CopyDeviceTensorToCPU(@Const tensorflow.Tensor device_tensor, @tensorflow.StringPiece BytePointer tensor_name, tensorflow.Device device, tensorflow.Tensor cpu_tensor, @ByVal @Cast(value="tensorflow::StatusCallback*") Pointer done)
public void CopyDeviceTensorToCPU(@Const tensorflow.Tensor device_tensor, @tensorflow.StringPiece String tensor_name, tensorflow.Device device, tensorflow.Tensor cpu_tensor, @ByVal @Cast(value="tensorflow::StatusCallback*") Pointer done)
@ByVal public tensorflow.Status ThenExecute(tensorflow.Device device, tensorflow.Stream stream, @ByVal tensorflow.Fn func)
Copyright © 2019. All rights reserved.