Package com.linkedin.feathr.common.value
Class TensorFeatureValue
java.lang.Object
com.linkedin.feathr.common.value.TensorFeatureValue
- All Implemented Interfaces:
FeatureValue
A FeatureValue that contains an arbitrary tensor.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TensorFeatureValuefromTensorData(TensorFeatureType featureType, TensorData tensorData) static TensorFeatureValuefromTypedTensor(TypedTensor typedTensor) inthashCode()toString()
-
Method Details
-
fromTensorData
public static TensorFeatureValue fromTensorData(TensorFeatureType featureType, TensorData tensorData) - Returns:
- a tensor feature-value for the given tensor and feature-type
-
fromTypedTensor
- Returns:
- a tensor feature-value for the given Quince TypedTensor
-
getFeatureType
- Specified by:
getFeatureTypein interfaceFeatureValue- Returns:
- the
FeatureTypeof this feature
-
getAsTensor
- Returns:
- the contained tensor as TensorData
-
getAsTypedTensor
- Returns:
- the contained tensor as TypedTensor
-
equals
-
hashCode
public int hashCode() -
toString
-