@Namespace(value="onnx") @NoOffset @Properties(inherit=onnx.class) public class Tensor extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Tensor() |
Tensor(long size)
Native array allocator.
|
Tensor(Pointer p)
Pointer cast constructor.
|
Tensor(Tensor other) |
Modifier and Type | Method and Description |
---|---|
DoublePointer |
doubles() |
long |
elem_num()
if tensor is a scalar, the sizes is empty, but the element number is actually 1.
|
IntPointer |
elem_type() |
FloatVector |
floats() |
Tensor |
getPointer(long i) |
boolean |
hasName() |
IntPointer |
int32s() |
LongVector |
int64s() |
boolean |
is_raw_data() |
boolean |
is_segment() |
BytePointer |
name() |
Tensor |
position(long position) |
Tensor |
put(Tensor other) |
BytePointer |
raw() |
long |
segment_begin() |
long |
segment_end() |
void |
set_raw_data(BytePointer raw_data) |
void |
set_raw_data(String raw_data) |
void |
set_segment_begin_and_end(long begin,
long end) |
void |
setName(BytePointer name) |
void |
setName(String name) |
long |
size_from_dim(int dim) |
LongVector |
sizes() |
StringVector |
strings() |
LongPointer |
uint64s() |
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, zero
public Tensor(Pointer p)
Pointer(Pointer)
.public Tensor(long size)
Pointer.position(long)
.public Tensor()
public Tensor getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") @NoException(value=true) public Tensor put(@ByVal Tensor other)
@ByRef public LongVector sizes()
@Cast(value="int64_t") public long elem_num()
@ByRef public IntPointer elem_type()
@ByRef public StringVector strings()
@ByRef public FloatVector floats()
@StdVector public DoublePointer doubles()
@StdVector public IntPointer int32s()
@ByRef public LongVector int64s()
@Cast(value="uint64_t*") @StdVector public LongPointer uint64s()
@StdString public BytePointer raw()
public void set_raw_data(@StdString BytePointer raw_data)
public void set_raw_data(@StdString String raw_data)
public void set_segment_begin_and_end(@Cast(value="int64_t") long begin, @Cast(value="int64_t") long end)
@StdString public BytePointer name()
public void setName(@StdString BytePointer name)
public void setName(@StdString String name)
Copyright © 2024. All rights reserved.