public final class TensorbackedInternals
extends java.lang.Object
Tensorbacked
object support.Modifier and Type | Method and Description |
---|---|
static <TB extends Tensorbacked<?>> |
classOf(TB tensorBacked) |
static <V,T extends Tensorbacked<V>> |
createBackedByTensor(java.lang.Class<T> tensorBackedClass,
Tensor<V> tensor)
Creates an instance of a class backed by a tensor.
|
static <T extends Tensorbacked<?>> |
dimensionsOf(java.lang.Class<T> tensorBackedClass)
Retrieves the dimensions from the given class inheriting from tensor backed.
|
static <TB extends Tensorbacked<?>> |
shapesOf(java.lang.Iterable<TB> tensorbackeds) |
static <S> java.lang.Iterable<Tensor<S>> |
tensorsOf(java.lang.Iterable<? extends Tensorbacked<S>> tensorbackeds) |
public static <T extends Tensorbacked<?>> java.util.Set<java.lang.Class<?>> dimensionsOf(java.lang.Class<T> tensorBackedClass)
Dimensions
annotation.tensorBackedClass
- the class for which to determine the dimensionspublic static <V,T extends Tensorbacked<V>> T createBackedByTensor(java.lang.Class<T> tensorBackedClass, Tensor<V> tensor)
tensorBackedClass
- the type of the class for which to create an instance.tensor
- the tensor to back the instancepublic static <S> java.lang.Iterable<Tensor<S>> tensorsOf(java.lang.Iterable<? extends Tensorbacked<S>> tensorbackeds)
public static final <TB extends Tensorbacked<?>> java.lang.Iterable<Shape> shapesOf(java.lang.Iterable<TB> tensorbackeds)
public static final <TB extends Tensorbacked<?>> java.lang.Class<TB> classOf(TB tensorBacked)