@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class TensorMaker extends Pointer
from_blob
functions in case the
required set of parameters does not align with the existing overloads.
at::Tensor tensor = at::for_blob(data, sizes)
.strides(strides)
.context(context, [](void *ctx) { delete static_castPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorMaker(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
TensorMaker |
allocator(Allocator allocator) |
TensorMaker |
context(Pointer value) |
TensorMaker |
context(Pointer value,
PointerConsumer deleter) |
TensorMaker |
deleter(PointerConsumer value) |
Tensor |
make_tensor() |
TensorMaker |
options(TensorOptions value) |
TensorMaker |
resizeable_storage() |
TensorMaker |
storage_offset(LongOptional value) |
TensorMaker |
strides(long... value) |
TensorMaker |
strides(LongArrayRefOptional value) |
TensorMaker |
target_device(DeviceOptional value) |
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 TensorMaker(Pointer p)
Pointer(Pointer)
.@ByRef @NoException(value=true) public TensorMaker strides(@ByVal LongArrayRefOptional value)
@ByRef @NoException(value=true) public TensorMaker strides(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector long... value)
@ByRef @NoException(value=true) public TensorMaker storage_offset(@ByVal LongOptional value)
@ByRef @NoException(value=true) public TensorMaker deleter(PointerConsumer value)
@ByRef @NoException(value=true) public TensorMaker context(Pointer value, PointerConsumer deleter)
@ByRef @NoException(value=true) public TensorMaker context(Pointer value)
@ByRef @NoException(value=true) public TensorMaker target_device(@ByVal DeviceOptional value)
@ByRef @NoException(value=true) public TensorMaker options(@ByVal TensorOptions value)
@ByRef @NoException(value=true) public TensorMaker resizeable_storage()
@ByRef @NoException(value=true) public TensorMaker allocator(Allocator allocator)
Copyright © 2024. All rights reserved.