Package com.yahoo.tensor
Class TypeResolver
- java.lang.Object
-
- com.yahoo.tensor.TypeResolver
-
public class TypeResolver extends Object
Common type resolving for basic tensor operations.- Author:
- arnej
-
-
Constructor Summary
Constructors Constructor Description TypeResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TensorType
cell_cast(TensorType inputType, TensorType.Value toCellType)
static TensorType
concat(TensorType lhs, TensorType rhs, String concatDimension)
static TensorType
join(TensorType lhs, TensorType rhs)
static TensorType
map(TensorType inputType)
static TensorType
merge(TensorType lhs, TensorType rhs)
static TensorType
peek(TensorType inputType, List<String> peekDimensions)
static TensorType
reduce(TensorType inputType, List<String> reduceDimensions)
static TensorType
rename(TensorType inputType, List<String> from, List<String> to)
-
-
-
Method Detail
-
map
public static TensorType map(TensorType inputType)
-
reduce
public static TensorType reduce(TensorType inputType, List<String> reduceDimensions)
-
peek
public static TensorType peek(TensorType inputType, List<String> peekDimensions)
-
rename
public static TensorType rename(TensorType inputType, List<String> from, List<String> to)
-
cell_cast
public static TensorType cell_cast(TensorType inputType, TensorType.Value toCellType)
-
join
public static TensorType join(TensorType lhs, TensorType rhs)
-
merge
public static TensorType merge(TensorType lhs, TensorType rhs)
-
concat
public static TensorType concat(TensorType lhs, TensorType rhs, String concatDimension)
-
-