@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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tensor a) |
void |
divide(Tensor a) |
DoublePointer |
doubles() |
IntPointer |
elem_type() |
FloatVector |
floats() |
boolean |
hasName() |
IntPointer |
int32s() |
LongVector |
int64s() |
boolean |
is_raw_data() |
boolean |
is_segment() |
void |
multiply(Tensor a) |
BytePointer |
name() |
Tensor |
position(long position) |
BytePointer |
raw() |
void |
scale_by_first_dim(Tensor s) |
int |
segment_begin() |
int |
segment_end() |
void |
set_raw_data(BytePointer raw_data) |
void |
set_raw_data(String raw_data) |
void |
set_segment_begin_and_end(int begin,
int end) |
void |
setName(BytePointer name) |
void |
setName(String name) |
int |
size_from_dim(int dim) |
LongVector |
sizes() |
void |
sqrt() |
StringVector |
strings() |
void |
subtract(Tensor a) |
IntPointer |
uint64s() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Tensor(Pointer p)
Pointer.Pointer(Pointer).public Tensor(long size)
Pointer.position(long).public Tensor()
@ByRef public LongVector sizes()
@Cast(value="int32_t*") @ByRef public IntPointer elem_type()
@ByRef public StringVector strings()
@ByRef public FloatVector floats()
@StdVector public DoublePointer doubles()
@Cast(value="int32_t*") @StdVector public IntPointer int32s()
@ByRef public LongVector int64s()
@Cast(value="uint64_t*") @StdVector public IntPointer 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") int begin, @Cast(value="int64_t") int end)
@StdString public BytePointer name()
public void setName(@StdString BytePointer name)
public void setName(@StdString String name)
public void sqrt()
Copyright © 2020. All rights reserved.