@NoOffset @Name(value="c10::optional<c10::ScalarType>") @Properties(inherit=torch.class) public class ScalarTypeOptional extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ScalarTypeOptional() |
ScalarTypeOptional(Pointer p)
Pointer cast constructor.
|
ScalarTypeOptional(torch.ScalarType value) |
Modifier and Type | Method and Description |
---|---|
torch.ScalarType |
get() |
boolean |
has_value() |
ScalarTypeOptional |
put(ScalarTypeOptional x) |
ScalarTypeOptional |
put(torch.ScalarType value) |
void |
reset() |
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 ScalarTypeOptional(Pointer p)
Pointer(Pointer)
.public ScalarTypeOptional(torch.ScalarType value)
public ScalarTypeOptional()
@Name(value="operator =") @ByRef public ScalarTypeOptional put(@ByRef ScalarTypeOptional x)
public boolean has_value()
public void reset()
@Name(value="value") public torch.ScalarType get()
@ValueSetter public ScalarTypeOptional put(torch.ScalarType value)
Copyright © 2024. All rights reserved.