@Namespace(value="at::indexing") @NoOffset @Properties(inherit=torch.class) public class Slice extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Slice() |
Slice(long size)
Native array allocator.
|
Slice(Pointer p)
Pointer cast constructor.
|
Slice(SymIntOptional start_index,
SymIntOptional stop_index,
SymIntOptional step_index) |
| Modifier and Type | Method and Description |
|---|---|
Slice |
getPointer(long i) |
Slice |
position(long position) |
SymInt |
start() |
SymInt |
step() |
SymInt |
stop() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Slice(Pointer p)
Pointer(Pointer).public Slice(long size)
Pointer.position(long).public Slice(@ByVal(nullValue="c10::optional<c10::SymInt>(c10::nullopt)") SymIntOptional start_index, @ByVal(nullValue="c10::optional<c10::SymInt>(c10::nullopt)") SymIntOptional stop_index, @ByVal(nullValue="c10::optional<c10::SymInt>(c10::nullopt)") SymIntOptional step_index)
public Slice()
Copyright © 2024. All rights reserved.