Package com.linkedin.feathr.common
Class GenericTypedTensor
java.lang.Object
com.linkedin.feathr.common.GenericTypedTensor
- All Implemented Interfaces:
TypedTensor
This is the base tensor class, may be created from the basic properties, from a feature or operator applied
to another tensor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericTypedTensor(TensorData data, TensorType type) Build for tensors that have a dynamic type, for example as a result of a tensor operation that changes the shape. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs never equal to instances of other classes, including Marmalade-generated.getData()Returns data content.getType()Returns type metadata.inthashCode()Slice along 1st dimension.Returns human-readable summary suitable for debugging.toDebugString(int maxStringLenLimit)
-
Field Details
-
_data
-
_type
-
-
Constructor Details
-
GenericTypedTensor
Build for tensors that have a dynamic type, for example as a result of a tensor operation that changes the shape.- Parameters:
data- actual datatype- the tensor type
-
-
Method Details
-
getData
Returns data content.- Specified by:
getDatain interfaceTypedTensor
-
getType
Returns type metadata.- Specified by:
getTypein interfaceTypedTensor
-
slice
Slice along 1st dimension. Returns tensor with N dimensions.- Specified by:
slicein interfaceTypedTensor
-
subSlice
- Specified by:
subSlicein interfaceTypedTensor
-
toDebugString
Returns human-readable summary suitable for debugging.- Specified by:
toDebugStringin interfaceTypedTensor
-
toDebugString
- Specified by:
toDebugStringin interfaceTypedTensor
-
equals
Is never equal to instances of other classes, including Marmalade-generated. -
hashCode
public int hashCode()
-