- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetSingleElementAsFloatOrSelf (0.26 sec)
-
tensorflow/compiler/mlir/lite/utils/attribute_utils.cc
if (attr.getShapedType().getNumElements() != 1 || !mlir::isa<FloatType>(attr.getShapedType().getElementType())) { return {}; } return attr.getSplatValue<FloatAttr>(); } FloatAttr GetSingleElementAsFloatOrSelf(Attribute attr) { if (auto m = mlir::dyn_cast_or_null<ElementsAttr>(attr)) { return ExtractSingleElementAsFloat(m); } else { return mlir::dyn_cast_or_null<FloatAttr>(attr); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/attribute_utils.h
// itself as a float element. Returns empty attribute if the number of elements // in the attribute is not 1, the element or itself isn't a float attribute. FloatAttr GetSingleElementAsFloatOrSelf(Attribute attr); // Returns the single integer element from an ElementsAttr. Returns empty // attribute if the number of elements in the attribute is not 1 or the // element isn't a integer attribute.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 03 16:37:16 UTC 2022 - 2K bytes - Viewed (0)