IValue class
PyTorch Lite
@author guoweifeng @date 2024/1/10 10:37 IValue
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBool → bool
-
no setter
- isBoolList → bool
-
no setter
- isDictLongKey → bool
-
no setter
- isDictStringKey → bool
-
no setter
- isDouble → bool
-
no setter
- isDoubleList → bool
-
no setter
- isList → bool
-
no setter
- isLong → bool
-
no setter
- isLongList → bool
-
no setter
- isNull → bool
-
no setter
- isString → bool
-
no setter
- isTensor → bool
-
no setter
- isTensorList → bool
-
no setter
- isTuple → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typeNames
↔ List<
String> -
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBool(
) → bool -
toBoolList(
) → List< bool> -
toDictLongKey(
) → Map< int, IValue> -
toDictStringKey(
) → Map< String, IValue> -
toDouble(
) → double -
toDoubleList(
) → List< double> -
toList(
) → List< IValue> -
toLong(
) → int -
toLongList(
) → List< int> -
toMap(
) → Map< String, dynamic> -
toStr(
) → String -
toString(
) → String -
A string representation of this object.
inherited
-
toTensor(
) → Tensor -
toTensorList(
) → List< Tensor> -
toTuple(
) → List< IValue>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
Constants
- typeCodeBool → const int
- typeCodeBoolList → const int
- typeCodeDictLongKey → const int
- typeCodeDictStringKey → const int
- typeCodeDouble → const int
- typeCodeDoubleList → const int
- typeCodeList → const int
- typeCodeLong → const int
- typeCodeLongList → const int
- typeCodeNull → const int
- typeCodeString → const int
- typeCodeTensor → const int
- typeCodeTensorList → const int
- typeCodeTuple → const int