@Namespace(value="torch") @NoOffset @Properties(inherit=torch.class) public class CppFunction extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CppFunction(CppFunction arg0)
This overload accepts lambdas, e.g., {@code CppFunction([](const Tensor& self) {
...
|
CppFunction(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static CppFunction |
makeFallthrough()
This creates a fallthrough function.
|
static CppFunction |
makeNamedNotSupported()
\private
Creates a function that raises an error saying that named tensors
are not supported when called.
|
CppFunction |
put(CppFunction arg0) |
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 CppFunction(Pointer p)
Pointer(Pointer)
.public CppFunction(@ByRef(value=true) CppFunction arg0)
CppFunction([](const Tensor& self) {
... }. NoInferSchemaTag())
@ByRef @Name(value="operator =") public CppFunction put(@ByRef(value=true) CppFunction arg0)
@ByVal public static CppFunction makeFallthrough()
@ByVal public static CppFunction makeNamedNotSupported()
Copyright © 2024. All rights reserved.