Companion object of lamp.STen
- STen.fromDoubleArray, STen.fromLongArray, STen.fromFloatArray factory methods copy data from JVM arrays into off heap memory and create an STen instance
- There are similar factories which take SADDLE data structures
Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Wraps a tensor without registering it to any scope.
Wraps a tensor without registering it to any scope.
Memory may leak.
Attributes
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Create tensor directly from file. Memory maps a file into host memory. Data is not passed through the JVM. Returned tensor is always on the CPU device.
Create tensor directly from file. Memory maps a file into host memory. Data is not passed through the JVM. Returned tensor is always on the CPU device.
Value parameters
- length
-
byte length of the data
- offset
-
byte offset into the file. Must be page aligned (usually multiple of 4096)
- path
-
file path
- pin
-
if true the mapped segment will be page locked with mlock(2)
- scalarTypeByte
-
scalar type (byte=1,short=2,int=3,long=4,half=5,float=6,double=7)
Attributes
- Returns
-
tensor on CPU
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Returns a tensor with the given content and shape on the given device
Returns a tensor with the given content and shape on the given device
Attributes
Broadcast tensor on root to the clique Blocks until all peers execute the broadcast. Takes a list of tensors for the case where a single thread manages multiple GPUs
Broadcast tensor on root to the clique Blocks until all peers execute the broadcast. Takes a list of tensors for the case where a single thread manages multiple GPUs
Attributes
Blocks until all peers join the clique.
Blocks until all peers join the clique.
Attributes
Reduction with + Output must be on the root rank
Reduction with + Output must be on the root rank
Blocks until all peers execute the reduce. Takes a list of tensors for the case where a single thread manages multiple GPUs
Attributes
Wraps an aten.Tensor and registering it to the given scope
Wraps an aten.Tensor and registering it to the given scope
Attributes
Create tensors directly from file. Memory maps a file into host memory. Data is not passed through the JVM. Returned tensor is always on the CPU device.
Create tensors directly from file. Memory maps a file into host memory. Data is not passed through the JVM. Returned tensor is always on the CPU device.
Value parameters
- length
-
byte length of the data (all tensors in total)
- offset
-
byte offset into the file. Must be page aligned (usually multiple of 4096)
- path
-
file path
- pin
-
if true the mapped segment will be page locked with mlock(2)
- tensors
-
list of tensors with (scalarType, byte offset, byte length), byte offset must be aligned to 8
Attributes
- Returns
-
tensor on CPU
Concrete fields
A tensor option specifying CPU and byte
A tensor option specifying CPU and byte
Attributes
A tensor option specifying CPU and double
A tensor option specifying CPU and double
Attributes
A tensor option specifying CPU and float
A tensor option specifying CPU and float
Attributes
A tensor option specifying CPU and int
A tensor option specifying CPU and int
Attributes
A tensor option specifying CPU and long
A tensor option specifying CPU and long
Attributes
A tensor option specifying CPU and short
A tensor option specifying CPU and short