Index

A D F G I L M N O R S T U V 
All Classes All Packages

A

allocateByteBuffer(int) - Static method in class org.pytorch.Tensor
Allocates a new direct ByteBuffer with native byte order with specified capacity that can be used in fromBlob(ByteBuffer, long[]), fromBlobUnsigned(ByteBuffer, long[]).
allocateDoubleBuffer(int) - Static method in class org.pytorch.Tensor
Allocates a new direct DoubleBuffer with native byte order with specified capacity that can be used in fromBlob(DoubleBuffer, long[]).
allocateFloatBuffer(int) - Static method in class org.pytorch.Tensor
Allocates a new direct FloatBuffer with native byte order with specified capacity that can be used in fromBlob(FloatBuffer, long[]).
allocateIntBuffer(int) - Static method in class org.pytorch.Tensor
Allocates a new direct IntBuffer with native byte order with specified capacity that can be used in fromBlob(IntBuffer, long[]).
allocateLongBuffer(int) - Static method in class org.pytorch.Tensor
Allocates a new direct LongBuffer with native byte order with specified capacity that can be used in fromBlob(LongBuffer, long[]).

D

destroy() - Method in class org.pytorch.Module
Explicitly destroys the native torch::jit::script::Module.
dictLongKeyFrom(Map<Long, IValue>) - Static method in class org.pytorch.IValue
Creates a new IValue of type Dict[int, V].
dictStringKeyFrom(Map<String, IValue>) - Static method in class org.pytorch.IValue
Creates a new IValue of type Dict[str, V].
dtype() - Method in class org.pytorch.Tensor
 
DType - Enum in org.pytorch
Codes representing tensor data types.

F

FLOAT32 - org.pytorch.DType
Code for dtype torch.float32.
FLOAT64 - org.pytorch.DType
Code for dtype torch.float64.
forward(IValue...) - Method in class org.pytorch.Module
Runs the 'forward' method of this module with the specified arguments.
from(boolean) - Static method in class org.pytorch.IValue
Creates a new IValue of type bool.
from(double) - Static method in class org.pytorch.IValue
Creates a new IValue of type float.
from(long) - Static method in class org.pytorch.IValue
Creates a new IValue of type int.
from(String) - Static method in class org.pytorch.IValue
Creates a new IValue of type str.
from(Tensor) - Static method in class org.pytorch.IValue
Creates a new IValue of type Tensor.
fromBlob(byte[], long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.int8 with specified shape and data as array of bytes.
fromBlob(float[], long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.float32 with specified shape and data as array of floats.
fromBlob(int[], long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.int32 with specified shape and data as array of ints.
fromBlob(long[], double[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.float64 with specified shape and data as array of doubles.
fromBlob(long[], long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.int64 with specified shape and data as array of longs.
fromBlob(ByteBuffer, long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.int8 with specified shape and data.
fromBlob(DoubleBuffer, long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.float64 with specified shape and data.
fromBlob(FloatBuffer, long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.float32 with specified shape and data.
fromBlob(IntBuffer, long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.int32 with specified shape and data.
fromBlob(LongBuffer, long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.int64 with specified shape and data.
fromBlobUnsigned(byte[], long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.uint8 with specified shape and data as array of bytes.
fromBlobUnsigned(ByteBuffer, long[]) - Static method in class org.pytorch.Tensor
Creates a new Tensor instance with dtype torch.uint8 with specified shape and data.

G

getDataAsByteArray() - Method in class org.pytorch.Tensor
 
getDataAsDoubleArray() - Method in class org.pytorch.Tensor
 
getDataAsFloatArray() - Method in class org.pytorch.Tensor
 
getDataAsIntArray() - Method in class org.pytorch.Tensor
 
getDataAsLongArray() - Method in class org.pytorch.Tensor
 
getDataAsUnsignedByteArray() - Method in class org.pytorch.Tensor
 

I

INT32 - org.pytorch.DType
Code for dtype torch.int32.
INT64 - org.pytorch.DType
Code for dtype torch.int64.
INT8 - org.pytorch.DType
Code for dtype torch.int8.
isBool() - Method in class org.pytorch.IValue
 
isBoolList() - Method in class org.pytorch.IValue
 
isDictLongKey() - Method in class org.pytorch.IValue
 
isDictStringKey() - Method in class org.pytorch.IValue
 
isDouble() - Method in class org.pytorch.IValue
 
isDoubleList() - Method in class org.pytorch.IValue
 
isList() - Method in class org.pytorch.IValue
 
isLong() - Method in class org.pytorch.IValue
 
isLongList() - Method in class org.pytorch.IValue
 
isNull() - Method in class org.pytorch.IValue
 
isString() - Method in class org.pytorch.IValue
 
isTensor() - Method in class org.pytorch.IValue
 
isTensorList() - Method in class org.pytorch.IValue
 
isTuple() - Method in class org.pytorch.IValue
 
IValue - Class in org.pytorch
Java representation of a TorchScript value, which is implemented as tagged union that can be one of the supported types: https://pytorch.org/docs/stable/jit.html#types .

L

listFrom(boolean...) - Static method in class org.pytorch.IValue
Creates a new IValue of type List[bool].
listFrom(double...) - Static method in class org.pytorch.IValue
Creates a new IValue of type List[float].
listFrom(long...) - Static method in class org.pytorch.IValue
Creates a new IValue of type List[int].
listFrom(IValue...) - Static method in class org.pytorch.IValue
Creates a new IValue of type List[T].
listFrom(Tensor...) - Static method in class org.pytorch.IValue
Creates a new IValue of type List[Tensor].
load(String) - Static method in class org.pytorch.Module
Loads a serialized TorchScript module from the specified path on the disk.

M

Module - Class in org.pytorch
Java wrapper for torch::jit::script::Module.

N

numel() - Method in class org.pytorch.Tensor
Returns the number of elements in this tensor.
numel(long[]) - Static method in class org.pytorch.Tensor
Calculates the number of elements in a tensor with the specified shape.

O

optionalNull() - Static method in class org.pytorch.IValue
Creates a new IValue of type Optional that contains no value.
org.pytorch - package org.pytorch
 

R

runMethod(String, IValue...) - Method in class org.pytorch.Module
Runs the specified method of this module with the specified arguments.

S

shape() - Method in class org.pytorch.Tensor
Returns the shape of this tensor.

T

Tensor - Class in org.pytorch
Representation of a Tensor.
toBool() - Method in class org.pytorch.IValue
 
toBoolList() - Method in class org.pytorch.IValue
 
toDictLongKey() - Method in class org.pytorch.IValue
 
toDictStringKey() - Method in class org.pytorch.IValue
 
toDouble() - Method in class org.pytorch.IValue
 
toDoubleList() - Method in class org.pytorch.IValue
 
toList() - Method in class org.pytorch.IValue
 
toLong() - Method in class org.pytorch.IValue
 
toLongList() - Method in class org.pytorch.IValue
 
toStr() - Method in class org.pytorch.IValue
 
toTensor() - Method in class org.pytorch.IValue
 
toTensorList() - Method in class org.pytorch.IValue
 
toTuple() - Method in class org.pytorch.IValue
 
tupleFrom(IValue...) - Static method in class org.pytorch.IValue
Creates a new IValue of type Tuple[T0, T1, ...].

U

UINT8 - org.pytorch.DType
Code for dtype torch.uint8.

V

valueOf(String) - Static method in enum org.pytorch.DType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.pytorch.DType
Returns an array containing the constants of this enum type, in the order they are declared.
A D F G I L M N O R S T U V 
All Classes All Packages