Uses of Class
com.yahoo.tensor.TensorType
Packages that use TensorType
Package
Description
Tensor data types
Tensor data types
Tensor function evaluation
-
Uses of TensorType in com.yahoo.tensor
Fields in com.yahoo.tensor declared as TensorTypeModifier and TypeFieldDescriptionstatic final TensorTypeTensorType.emptyThe empty tensor type - which is the same as a doubleMethods in com.yahoo.tensor that return TensorTypeModifier and TypeMethodDescriptionTensorType.Builder.build()static TensorTypeTypeResolver.cell_cast(TensorType inputType, TensorType.Value toCellType) static TensorTypeTypeResolver.concat(TensorType lhs, TensorType rhs, String concatDimension) static TensorTypeMixedTensor.createPartialType(TensorType.Value valueType, List<TensorType.Dimension> dimensions) static TensorTypeReturns a tensor type instance from a tensor type spec:tensor(dimension1, dimension2, ...)where each dimension is eitherdimension-name[]- an unbound indexed dimensiondimension-name[int]- an bound indexed dimensiondimension-name{}- a mapped dimension Example:tensor(x[10],y[20])(a matrix)static TensorTypeTensorType.indexedSubtype()The type representing the indexed subset of dimensions of this.static TensorTypeTypeResolver.join(TensorType lhs, TensorType rhs) static TensorTypeTypeResolver.map(TensorType inputType) TensorType.mappedSubtype()The type representing the mapped subset of dimensions of this.static TensorTypeTypeResolver.merge(TensorType lhs, TensorType rhs) static TensorTypeTypeResolver.peek(TensorType inputType, List<String> peekDimensions) static TensorTypeTypeResolver.reduce(TensorType inputType, List<String> reduceDimensions) static TensorTypeIndexedTensor.Builder.type()IndexedTensor.DirectIndexBuilder.type()IndexedTensor.type()MappedTensor.Builder.type()MappedTensor.type()MixedTensor.Builder.type()MixedTensor.type()Returns the tensor typeTensor.Builder.CellBuilder.type()Returns the type of the tensor this cell is build for.Tensor.Builder.type()Returns the type of the tensor this is buildingTensor.type()TensorAddress.Builder.type()Returns the type of the tensor this address is being built for.Methods in com.yahoo.tensor that return types with arguments of type TensorTypeModifier and TypeMethodDescriptionTensorType.dimensionwiseGeneralizationWith(TensorType other) Returns the dimensionwise generalization of this and the given type, or empty if no generalization exists.Methods in com.yahoo.tensor with parameters of type TensorTypeModifier and TypeMethodDescriptionPartialAddress.asAddress(TensorType type) Returns this as an address in the given tensor typestatic TensorTypeTypeResolver.cell_cast(TensorType inputType, TensorType.Value toCellType) static TensorType.ValueTensorType.combinedValueType(TensorType... types) static TensorTypeTypeResolver.concat(TensorType lhs, TensorType rhs, String concatDimension) static TensorTensor.diag(TensorType type) TensorType.dimensionwiseGeneralizationWith(TensorType other) Returns the dimensionwise generalization of this and the given type, or empty if no generalization exists.static TensorTensor.from(TensorType type, String tensorString) Returns a tensor instance containing the given data on the tensor literal form.static TensorbooleanTensorType.isAssignableTo(TensorType generalization) Returns whether this type can be assigned to the given type, i.e. if the given type is a generalization of this type.booleanTensorType.isConvertibleTo(TensorType generalization) Returns whether this type can be converted to the given type.booleanTensorType.isRenamableTo(TensorType other) Returns whether this type can simply be renamed to the given type.static TensorTypeTypeResolver.join(TensorType lhs, TensorType rhs) static TensorTypeTypeResolver.map(TensorType inputType) TensorAddress.mappedPartialAddress(TensorType mappedType, List<TensorType.Dimension> dimensions) Returns an address containing the mapped dimensions of this.booleanTensorType.mathematicallyEquals(TensorType other) Returns whether the given type has the same dimension names as thisstatic TensorTypeTypeResolver.merge(TensorType lhs, TensorType rhs) static DimensionSizesDimensionSizes.of(TensorType type) Create sizes from a type containing bound indexed dimensions only.static IndexedTensor.BuilderIndexedTensor.Builder.of(TensorType type) static IndexedTensor.BuilderIndexedTensor.Builder.of(TensorType type, double[] values) Creates a builder initialized with the given valuesstatic IndexedTensor.BuilderIndexedTensor.Builder.of(TensorType type, float[] values) Creates a builder initialized with the given valuesstatic IndexedTensor.BuilderIndexedTensor.Builder.of(TensorType type, DimensionSizes sizes) Create a builder with dimension size information for this instance.static IndexedTensor.BuilderIndexedTensor.Builder.of(TensorType type, DimensionSizes sizes, double[] values) Creates a builder initialized with the given valuesstatic IndexedTensor.BuilderIndexedTensor.Builder.of(TensorType type, DimensionSizes sizes, float[] values) Creates a builder initialized with the given valuesstatic IndexedTensor.IndexesIndexedTensor.Indexes.of(TensorType type) Create indexes from a type containing bound indexed dimensions only.static IndexedTensor.IndexesIndexedTensor.Indexes.of(TensorType type, List<String> iterateDimensionOrder) static MappedTensor.BuilderMappedTensor.Builder.of(TensorType type) static MixedTensor.BoundBuilderMixedTensor.BoundBuilder.of(TensorType type) static MixedTensor.BuilderMixedTensor.Builder.of(TensorType type) Create a builder depending upon the type of indexed dimensions.static Tensor.BuilderTensor.Builder.of(TensorType type) Creates a suitable builder for the given typestatic Tensor.BuilderTensor.Builder.of(TensorType type, DimensionSizes dimensionSizes) Creates a suitable builder for the given typestatic TensorTypeTypeResolver.peek(TensorType inputType, List<String> peekDimensions) static TensorTensor.random(TensorType type) static TensorTensor.range(TensorType type) static TensorTypeTypeResolver.reduce(TensorType inputType, List<String> reduceDimensions) static TensorTypeTensor.Cell.toString(TensorType type) final StringTensorAddress.toString(TensorType type) Returns this as a string on the appropriate form given the typeabstract IndexedTensorIndexedTensor.withType(TensorType type) MappedTensor.withType(TensorType other) MixedTensor.withType(TensorType other) Tensor.withType(TensorType type) Returns this tensor with the given type if types are compatibleConstructors in com.yahoo.tensor with parameters of type TensorTypeModifierConstructorDescriptionBuilder(TensorType type) Builder(boolean allowDifferentSizes, TensorType... types) Builder(TensorType... types) Creates a builder containing a combination of the dimensions of the given types If the same dimension is indexed with different size restrictions the smallest size will be used.PartialBuilder(TensorType type) -
Uses of TensorType in com.yahoo.tensor.evaluation
Methods in com.yahoo.tensor.evaluation that return TensorTypeModifier and TypeMethodDescriptionReturns the type of the tensor with this name by converting from a string name.Returns the type of the tensor with this name.VariableTensor.type(TypeContext<NAMETYPE> context) Constructors in com.yahoo.tensor.evaluation with parameters of type TensorTypeModifierConstructorDescriptionVariableTensor(String name, TensorType requiredType) A variable tensor which must be compatible with the given type -
Uses of TensorType in com.yahoo.tensor.functions
Methods in com.yahoo.tensor.functions that return TensorTypeModifier and TypeMethodDescriptionstatic TensorTypeJoin.outputType(TensorType a, TensorType b) Returns the type resulting from applying Join to the two given typesstatic TensorTypeMap.outputType(TensorType inputType) static TensorTypeMatmul.outputType(TensorType a, TensorType b, String dimension) static TensorTypeMerge.outputType(TensorType a, TensorType b) Returns the type resulting from applying Merge to the two given typesstatic TensorTypeReduce.outputType(TensorType inputType, List<String> reduceDimensions) static TensorTypeSoftmax.outputType(TensorType inputType, String dimension) CellCast.type(TypeContext<NAMETYPE> context) CompositeTensorFunction.type(TypeContext<NAMETYPE> context) Finds the type this produces by first converting it to a primitive functionConcat.type(TypeContext<NAMETYPE> context) ConstantTensor.type(TypeContext<NAMETYPE> context) CosineSimilarity.type(TypeContext<NAMETYPE> context) DynamicTensor.type(TypeContext<NAMETYPE> context) EuclideanDistance.type(TypeContext<NAMETYPE> context) final TensorTypeExpand.type(TypeContext<NAMETYPE> context) Generate.type(TypeContext<NAMETYPE> context) Join.type(TypeContext<NAMETYPE> context) Map.type(TypeContext<NAMETYPE> context) MapSubspaces.type(TypeContext<NAMETYPE> context) Merge.type(TypeContext<NAMETYPE> context) Reduce.type(TypeContext<NAMETYPE> context) Rename.type(TypeContext<NAMETYPE> context) Slice.type(TypeContext<NAMETYPE> context) abstract TensorTypeTensorFunction.type(TypeContext<NAMETYPE> context) Returns the type of the tensor this produces given the input types in the contextMethods in com.yahoo.tensor.functions with parameters of type TensorTypeModifier and TypeMethodDescriptionGenerate.bound(TensorType type, ScalarFunction<NAMETYPE> generator) Creates a generated tensor from a bound functionCreates a generated tensor from a free functionstatic <NAMETYPE extends Name>
DynamicTensor<NAMETYPE>DynamicTensor.from(TensorType type, List<ScalarFunction<NAMETYPE>> cells) Creates a dynamic tensor function for a bound, indexed tensorstatic <NAMETYPE extends Name>
DynamicTensor<NAMETYPE>DynamicTensor.from(TensorType type, Map<TensorAddress, ScalarFunction<NAMETYPE>> cells) Creates a dynamic tensor function.static TensorTypeJoin.outputType(TensorType a, TensorType b) Returns the type resulting from applying Join to the two given typesstatic TensorTypeMap.outputType(TensorType inputType) static TensorTypeMatmul.outputType(TensorType a, TensorType b, String dimension) static TensorTypeMerge.outputType(TensorType a, TensorType b) Returns the type resulting from applying Merge to the two given typesstatic TensorTypeReduce.outputType(TensorType inputType, List<String> reduceDimensions) static TensorTypeSoftmax.outputType(TensorType inputType, String dimension) Constructors in com.yahoo.tensor.functions with parameters of type TensorTypeModifierConstructorDescriptionDiag(TensorType type) The same as Generate.freeRandom(TensorType type) Range(TensorType type) -
Uses of TensorType in com.yahoo.tensor.serialization
Methods in com.yahoo.tensor.serialization with parameters of type TensorTypeModifier and TypeMethodDescriptionstatic TensorJsonFormat.decode(TensorType type, byte[] jsonTensorValue) Deserializes the given tensor from JSON formatMethod parameters in com.yahoo.tensor.serialization with type arguments of type TensorTypeModifier and TypeMethodDescriptionDenseBinaryFormat.decode(Optional<TensorType> optionalType, GrowableByteBuffer buffer) static TensorTypedBinaryFormat.decode(Optional<TensorType> type, GrowableByteBuffer buffer) Decode some data to a tensor