@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class LegacyTensorConstructor extends SpecialFormValue
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LegacyTensorConstructor(Pointer p)
Pointer cast constructor.
|
LegacyTensorConstructor(Symbol form,
torch.ScalarType dtype,
Device device) |
Modifier and Type | Method and Description |
---|---|
static LegacyTensorConstructor |
create(Symbol form,
torch.ScalarType dtype,
Device device) |
torch.ScalarType |
dtype() |
create, form, kind
asTuple, asTuple, asTupleValue, asType, asValue, attr, attr, getitem, getitem, hasAttr, hasAttr, iter, len, setAttr, setAttr, shouldEmitUnrolled, staticLen
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 LegacyTensorConstructor(Pointer p)
Pointer(Pointer)
.public LegacyTensorConstructor(@ByVal Symbol form, torch.ScalarType dtype, @ByVal Device device)
@SharedPtr public static LegacyTensorConstructor create(@ByVal Symbol form, torch.ScalarType dtype, @ByVal Device device)
public torch.ScalarType dtype()
Copyright © 2024. All rights reserved.