- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EnsureAttribute (0.17 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc
return true; } bool GetI32VectorFromDenseI64CompositeAttr( const DictionaryAttr& composite_attrs, const std::string& attr_name, std::vector<int32_t>* out_vec) { DenseIntElementsAttr attr; if (!EnsureAttribute<DenseIntElementsAttr>(composite_attrs, attr_name, &attr)) { return false; } return DenseI64AttrToI32Vector(attr, out_vec); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 18:33:05 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h
namespace mlir { namespace odml { // Ensure an attribute named attr_name exists and it is of type AttrType. // If so, sets the `out_attr` pointer to point to the casted attribute. template <typename AttrType> bool EnsureAttribute(const DictionaryAttr& composite_attributes, const std::string& attr_name, AttrType* out_attr) { Attribute attr = composite_attributes.get(attr_name); if (!mlir::isa_and_nonnull<AttrType>(attr)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 18:33:05 UTC 2024 - 3.4K bytes - Viewed (0)