@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class Stream extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Stream.Default |
static class |
Stream.Unsafe |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Stream(int arg0,
Device device) |
Stream(int arg0,
Device device,
long id) |
Stream(Pointer p)
Pointer cast constructor.
|
Stream(Stream.Default arg0,
Device device)
Construct the default stream of a Device.
|
Stream(Stream.Unsafe arg0,
Device device,
long id)
Unsafely construct a stream from a Device and a StreamId.
|
Modifier and Type | Method and Description |
---|---|
byte |
device_index() |
torch.DeviceType |
device_type() |
Device |
device() |
boolean |
equals(Stream other) |
long |
hash() |
long |
id() |
boolean |
notEquals(Stream other) |
StreamData3 |
pack3() |
boolean |
query() |
void |
synchronize() |
static Stream |
unpack3(long stream_id,
byte device_index,
byte device_type) |
static Stream |
unpack3(long stream_id,
byte device_index,
torch.DeviceType device_type) |
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 Stream(Pointer p)
Pointer(Pointer)
.public Stream(Stream.Unsafe arg0, @ByVal Device device, @Cast(value="c10::StreamId") long id)
public Stream(@Cast(value="c10::Stream::Unsafe") int arg0, @ByVal Device device, @Cast(value="c10::StreamId") long id)
public Stream(Stream.Default arg0, @ByVal Device device)
@Cast(value="bool") @Name(value="operator ==") @NoException(value=true) public boolean equals(@Const @ByRef Stream other)
@Cast(value="bool") @Name(value="operator !=") @NoException(value=true) public boolean notEquals(@Const @ByRef Stream other)
@ByVal @NoException(value=true) public Device device()
@NoException(value=true) public torch.DeviceType device_type()
@Cast(value="c10::DeviceIndex") @NoException(value=true) public byte device_index()
@Cast(value="c10::StreamId") @NoException(value=true) public long id()
public void synchronize()
@Cast(value="uint64_t") @NoException(value=true) public long hash()
@ByVal public StreamData3 pack3()
@ByVal public static Stream unpack3(@Cast(value="c10::StreamId") long stream_id, @Cast(value="c10::DeviceIndex") byte device_index, torch.DeviceType device_type)
Copyright © 2024. All rights reserved.