Package | Description |
---|---|
org.bytedeco.pytorch | |
org.bytedeco.pytorch.functions | |
org.bytedeco.pytorch.global |
Modifier and Type | Method and Description |
---|---|
IValue |
Await._wait() |
IValue |
attribute_iterator.access() |
IValue |
JitModule.apply(IValueVector inputs) |
IValue |
IMethod.apply(IValueVector args) |
IValue |
Method.apply(IValueVector stack) |
IValue |
Function.apply(IValueVector stack) |
IValue |
IMethod.apply(IValueVector args,
StringIValueMap kwargs) |
IValue |
Method.apply(IValueVector stack,
StringIValueMap kwargs) |
IValue |
Function.apply(IValueVector stack,
StringIValueMap kwargs) |
IValue |
GenericDict.at(IValue key)
Returns the mapped value of the element with key equivalent to key.
|
IValue |
TupleElements.at(long idx) |
IValue |
IValueArrayRef.at(long Index)
Vector compatibility
|
IValue |
JitObject.attr(BytePointer name) |
IValue |
JitObject.attr(BytePointer name,
IValue or_else) |
IValue |
JitObject.attr(String name) |
IValue |
JitObject.attr(String name,
IValue or_else) |
IValue |
TupleElements.back() |
IValue |
IValueVector.back() |
IValue |
IValueArrayRef.back()
back - Get the last element.
|
IValue |
TupleElements.begin() |
IValue |
IValueArrayRef.begin()
\}
\name Simple Operations
\{
|
IValue |
TupleElements.cbegin() |
IValue |
IValueArrayRef.cbegin() |
IValue |
TupleElements.cend() |
IValue |
IValueArrayRef.cend() |
IValue |
Future.constValue() |
IValue |
JitModule.create_class(QualifiedName name,
IValueVector stack) |
static IValue |
AttributePolicy.create(SlotCursor cursors,
IValue v) |
IValue |
IValueArrayRef.data() |
IValue |
IValue.deepcopy() |
IValue |
IValue.deepcopy(DeviceOptional device) |
IValue |
IValue.deepcopy(HashAliasedIValueMap memo) |
IValue |
IValue.deepcopy(HashAliasedIValueMap memo,
DeviceOptional device) |
IValue |
TupleElements.end() |
IValue |
IValueArrayRef.end() |
IValue |
GenericList.extract(long pos)
Moves out the element at the specified location pos and returns it, with bounds checking.
|
IValue |
HashAliasedIValueMap.Iterator.first() |
IValue |
JitModule.forward(IValueVector inputs) |
IValue |
JitModule.forward(IValueVector inputs,
StringIValueMap kwargs) |
IValue |
HashAliasedIValues.front() |
IValue |
IValueVector.front() |
IValue |
IValueArrayRef.front()
front - Get the first element.
|
IValue |
DoubleComplexElementReference.get() |
IValue |
HashAliasedIValues.Iterator.get() |
IValue |
GenericElementReference.get() |
IValue[] |
IValueVector.get() |
IValue |
IValueVector.Iterator.get() |
IValue |
TensorElementReference.get() |
IValue |
TensorOptionalElementReference.get() |
IValue |
DoubleElementReference.get() |
IValue |
IValueOptional.get() |
IValue |
BooleanElementReference.get() |
IValue |
LongElementReference.get() |
IValue |
FuturePtrElementReference.get() |
IValue |
StringIValueMap.get(BytePointer i) |
IValue |
HashAliasedIValueMap.get(IValue i) |
IValue |
GenericList.get(long pos)
Returns the element at specified location pos, with bounds checking.
|
IValue |
TupleElements.get(long idx) |
IValue |
IValueVector.get(long i) |
IValue |
IValueArrayRef.get(long Index)
\}
\name Operator Overloads
\{
|
IValue |
ClassType.getConstant(BytePointer name) |
IValue |
ClassType.getConstant(long slot) |
IValue |
ClassType.getConstant(String name) |
IValue |
GenericElementReference.getGeneric() |
IValue |
IValue.hash()
Hashing for IValues.
|
IValue |
JitNode.ival(Symbol name) |
IValue |
GenericDictEntryRef.key() |
IValue |
WeakIValue.lock() |
static IValue |
IValue.make_capsule(Pointer blob) |
IValue |
attribute_iterator.multiply() |
IValue |
Unpickler.parse_ivalue() |
IValue |
ScriptTypeParser.parseClassConstant(Assign assign) |
IValue |
IValueVector.pop_back() |
IValue |
GenericList.ptr_to_first_element() |
IValue |
IValue.put(IValue rhs)
\private [doxygen private]
|
IValue |
StringIValueMap.Iterator.second() |
IValue |
EnumNameValue.second() |
IValue |
HashAliasedIValueMap.Iterator.second() |
IValue |
IValue.toIValue() |
IValue |
ProfilerConfig.toIValue() |
IValue |
PyObjectHolder.toIValue(Type.TypePtr type) |
IValue |
PyObjectHolder.toIValue(Type.TypePtr type,
IntOptional N) |
static IValue |
IValue.uninitialized() |
IValue |
EnumHolder.value() |
IValue |
NamedIValue.value() |
IValue |
GenericDictEntryRef.value() |
IValue |
Await.value() |
IValue |
Future.value() |
Modifier and Type | Method and Description |
---|---|
boolean |
IValue._fastEqualsForContainer(IValue rhs) |
void |
SchemaInfo.addArgumentValue(BytePointer name,
IValue value) |
void |
SchemaInfo.addArgumentValue(String name,
IValue value) |
long |
ClassType.addConstant(BytePointer name,
IValue value) |
long |
ClassType.addConstant(String name,
IValue value) |
void |
ArgumentSpec.addOptional(IValue input) |
void |
ArgumentSpec.addTensor(IValue input,
boolean with_grad) |
IValue |
GenericDict.at(IValue key)
Returns the mapped value of the element with key equivalent to key.
|
IValue |
JitObject.attr(BytePointer name,
IValue or_else) |
IValue |
JitObject.attr(String name,
IValue or_else) |
boolean |
GenericDict.contains(IValue key)
Checks if there is an element with key equivalent to key in the container.
|
static TuplePtr |
Tuple.create(IValue e1) |
static TuplePtr |
Tuple.create(IValue e1,
IValue e2) |
static TuplePtr |
Tuple.create(IValue e1,
IValue e2,
IValue e3) |
static Tensor |
BufferPolicy.create(SlotCursor cursors,
IValue v) |
static Tensor |
ParameterPolicy.create(SlotCursor cursors,
IValue v) |
static IValue |
AttributePolicy.create(SlotCursor cursors,
IValue v) |
static JitModule |
ModulePolicy.create(SlotCursor cursors,
IValue v) |
boolean |
IValue.equals(IValue rhs) |
void |
HashAliasedIValues.erase(IValue value) |
long |
GenericDict.erase(IValue key)
Removes the element with the given key, if it exists.
|
GenericDictIterator |
GenericDict.find(IValue key)
Finds an element with key equivalent to key.
|
static ProfilerConfig |
ProfilerConfig.fromIValue(IValue profilerConfigIValue) |
IValue |
HashAliasedIValueMap.get(IValue i) |
static long |
IValue.hash(IValue iv) |
GenericListIterator |
GenericList.insert(GenericListIterator pos,
IValue value)
Inserts value before pos.
|
void |
HashAliasedIValues.insert(IValue value) |
IValueVector.Iterator |
IValueVector.insert(IValueVector.Iterator pos,
IValue value) |
Value |
Graph.insertConstant(IValue val) |
Value |
Graph.insertConstant(IValue val,
SourceRangeOptional loc,
ScopeOptional scope) |
boolean |
IValue.is(IValue rhs)
Identity comparison.
|
boolean |
IValue.isAliasOf(IValue rhs) |
boolean |
IValue.isSameIdentity(IValue rhs)
\private [doxygen private]
this is a shallow comparison of two IValues to test the object identity
|
JitNode |
JitNode.ival_(Symbol name,
IValue v) |
void |
Await.markCompleted(IValue value) |
void |
Future.markCompleted(IValue value) |
void |
Future.markCompleted(IValue value,
WeakStorageVectorOptional storages)
Explicitly mark the future as completed with the output value.
|
boolean |
IValue.notEquals(IValue rhs) |
boolean |
IValue.overlaps(IValue rhs) |
void |
GenericList.push_back(IValue value)
Appends the given element value to the end of the container.
|
IValueVector |
IValueVector.push_back(IValue value) |
void |
Pickler.pushDict(IValue ivalue) |
void |
Pickler.pushIValue(IValue ivalue) |
StringIValueMap |
StringIValueMap.put(BytePointer i,
IValue value) |
EnumNameValue |
EnumNameValue.put(BytePointer firstValue,
IValue secondValue) |
IValueVector |
IValueVector.put(IValue... array) |
IValue |
IValue.put(IValue rhs)
\private [doxygen private]
|
IValueVector |
IValueVector.put(IValue value) |
IValueOptional |
IValueOptional.put(IValue value) |
HashAliasedIValueMap |
HashAliasedIValueMap.put(IValue i,
IValue value) |
IValueVector |
IValueVector.put(long i,
IValue value) |
EnumNameValue |
EnumNameValue.put(String firstValue,
IValue secondValue) |
void |
InputArchive.read(BytePointer key,
IValue ivalue)
Reads an
IValue associated with a given key . |
void |
InputArchive.read(String key,
IValue ivalue) |
void |
JitModule.register_attribute(BytePointer name,
Type.TypePtr t,
IValue v) |
void |
JitModule.register_attribute(BytePointer name,
Type.TypePtr t,
IValue v,
boolean is_param,
boolean is_buffer) |
void |
JitModule.register_attribute(String name,
Type.TypePtr t,
IValue v) |
void |
JitModule.register_attribute(String name,
Type.TypePtr t,
IValue v,
boolean is_param,
boolean is_buffer) |
void |
GenericList.resize(long count,
IValue value)
Resizes the container to contain count elements.
|
EnumNameValue |
EnumNameValue.second(IValue second) |
void |
GenericList.set(long pos,
IValue value)
Assigns a new value to the element at location pos.
|
void |
JitObject.setattr(BytePointer name,
IValue v) |
void |
JitObject.setattr(String name,
IValue v) |
void |
IValue.swap(IValue rhs)
\private [doxygen private]
|
boolean |
InputArchive.try_read(BytePointer key,
IValue ivalue)
Reads an
IValue associated with a given key . |
boolean |
InputArchive.try_read(String key,
IValue ivalue) |
void |
Tuple.unsafeSetElement(long idx,
IValue element) |
static boolean |
BufferPolicy.valid(ClassType typ,
long i,
IValue v) |
static boolean |
ParameterPolicy.valid(ClassType typ,
long i,
IValue v) |
static boolean |
AttributePolicy.valid(ClassType typ,
long i,
IValue v) |
static boolean |
ModulePolicy.valid(ClassType typ,
long i,
IValue v) |
NamedIValue |
NamedIValue.value(IValue setter) |
void |
OutputArchive.write(BytePointer key,
IValue ivalue)
Writes an
IValue to the OutputArchive . |
void |
OutputArchive.write(String key,
IValue ivalue) |
Constructor and Description |
---|
EnumHolder(EnumType type,
BytePointer name,
IValue value) |
EnumHolder(EnumType type,
String name,
IValue value) |
EnumNameValue(BytePointer firstValue,
IValue secondValue) |
EnumNameValue(String firstValue,
IValue secondValue) |
IValue(IValue rhs) |
IValueArrayRef(IValue begin,
IValue end)
Construct an ArrayRef from a range.
|
IValueArrayRef(IValue data,
long length)
Construct an ArrayRef from a pointer and length.
|
IValueOptional(IValue value) |
IValueVector(IValue... array) |
IValueVector(IValue value) |
NamedValue(BytePointer name,
IValue value) |
NamedValue(IValue value) |
NamedValue(String name,
IValue value) |
TupleElements(IValue e1) |
TupleElements(IValue e1,
IValue e2) |
TupleElements(IValue e1,
IValue e2,
IValue e3) |
WeakIValue(IValue rhs) |
Modifier and Type | Method and Description |
---|---|
IValue |
IValueSupplier.call() |
Modifier and Type | Method and Description |
---|---|
static IValue |
torch.peek(IValueVector stack,
long i,
long N)
BoxedKernel is similar to a std::function storing a boxed kernel.
|
static IValue |
torch.pickle_load(byte[] data) |
static IValue |
torch.pickle_load(ByteBuffer data) |
static IValue |
torch.pickle_load(BytePointer data) |
static IValue |
torch.pop(IValueVector stack) |
static IValue |
torch.ptr_to_first_element(GenericList list) |
static IValue |
torch.unpickle(BytePointer data,
long size) |
static IValue |
torch.unpickle(BytePointer data,
long size,
TypeResolver type_resolver,
TensorArrayRef tensor_table,
TypeParser type_parser)
Decode a chunk of memory containing pickled data into its
torch::IValue s. |
static IValue |
torch.unpickle(PickleReader reader,
TypeResolver type_resolver,
TensorArrayRef tensor_table) |
static IValue |
torch.unpickle(PickleReader reader,
TypeResolver type_resolver,
TensorArrayRef tensor_table,
TypeParser type_parser)
reader is a function that takes in a size to read from some pickled
binary. |
static IValue |
torch.unpickle(PickleReader reader,
TypeResolver type_resolver,
TensorVector tensor_table) |
static IValue |
torch.unpickle(PickleReader reader,
TypeResolver type_resolver,
TensorVector tensor_table,
TypeParser type_parser) |
static IValue |
torch.unpickle(String data,
long size) |
static IValue |
torch.unpickle(String data,
long size,
TypeResolver type_resolver,
TensorVector tensor_table,
TypeParser type_parser) |
Modifier and Type | Method and Description |
---|---|
static boolean |
torch._fastEqualsForContainer(IValue lhs,
IValue rhs) |
static Value |
torch.insertConstant(Graph g,
IValue val) |
static Value |
torch.insertConstant(Graph g,
IValue val,
SourceRangeOptional loc,
ScopeOptional scope) |
static boolean |
torch.isCustomClass(IValue v) |
static JitModule |
torch.jitModuleFromSourceAndConstants(IValue ivalue,
ExtraFilesMap source,
IValueVector constants,
int version) |
static BytePointer |
torch.pickle_save(IValue ivalue)
Serializes the given
tensor_vec of type std::vector<torch::Tensor> . |
static BytePointer |
torch.pickle(IValue ivalue) |
static BytePointer |
torch.pickle(IValue ivalue,
TensorVector tensor_table)
Save a
torch::IValue in a format compatible with Python's pickle module
If present, tensor_table is a pointer to a table in which tensors that
are contained within ivalue are stored, and the bytes returned by the
pickler will only include references to these tensors in the table. |
static void |
torch.pickle(PickleWriter writer,
IValue ivalue) |
static void |
torch.pickle(PickleWriter writer,
IValue ivalue,
TensorVector tensor_table)
Pickle an IValue by calling a function to handle writing the data.
|
static ValueOptional |
torch.tryInsertConstant(Graph g,
IValue val) |
static ValueOptional |
torch.tryInsertConstant(Graph g,
IValue val,
SourceRangeOptional loc,
ScopeOptional scope) |
Copyright © 2024. All rights reserved.