@Namespace(value="torch::jit") @NoOffset @Properties(inherit=torch.class) public class Pickler extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Pickler(PickleWriter writer) |
Pickler(PickleWriter writer,
TensorVector tensor_table,
TypeRenamer type_renamer,
SharedClassTypeVector memoized_class_types) |
Pickler(PickleWriter writer,
TensorVector tensor_table,
TypeRenamer type_renamer,
SharedClassTypeVector memoized_class_types,
TensorIdGetter get_tensor_id,
boolean tag_aggregates) |
Pickler(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
endTuple() |
void |
protocol() |
void |
pushDict(IValue ivalue) |
void |
pushInt(long value) |
void |
pushIValue(IValue ivalue) |
void |
pushLong(BytePointer data) |
void |
pushLong(String data) |
void |
startTuple() |
void |
stop() |
TensorVector |
tensorData() |
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 Pickler(Pointer p)
Pointer(Pointer)
.public Pickler(@ByVal PickleWriter writer)
public Pickler(@ByVal PickleWriter writer, TensorVector tensor_table, @ByVal TypeRenamer type_renamer, SharedClassTypeVector memoized_class_types, @ByVal(nullValue="std::function<std::string(const at::Tensor&)>(nullptr)") TensorIdGetter get_tensor_id, @Cast(value="bool") boolean tag_aggregates)
public Pickler(@ByVal PickleWriter writer, TensorVector tensor_table, @ByVal TypeRenamer type_renamer, SharedClassTypeVector memoized_class_types)
public void protocol()
public void stop()
public void startTuple()
public void endTuple()
@Cast(value={"","std::vector<torch::Tensor>"}) @StdMove public TensorVector tensorData()
public void pushLong(@StdString BytePointer data)
public void pushLong(@StdString String data)
Copyright © 2024. All rights reserved.