- Sort Score
- Result 10 results
- Languages All
Results 31 - 34 of 34 for FloatAttr (0.19 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
std::vector<float> floatVec; floatVec.reserve(attrArray.getValue().size()); for (auto attr : attrArray.getValue()) { floatVec.push_back( mlir::cast<mlir::FloatAttr>(attr).getValue().convertToFloat()); } return builder->CreateVector(floatVec); } // F32Attr already returns a float as required by flatbuffer builders. static float ConvertF32AttrForOptionWriter(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
if (!sgn_splat) return false; auto splat = dyn_cast<SplatElementsAttr>(float_or_int); if (auto float_spl = llvm::dyn_cast_if_present<FloatAttr>(splat), sgn_cst_spl = llvm::dyn_cast_if_present<FloatAttr>(sgn_splat); float_spl && sgn_cst_spl) { return IsSign(float_spl.getValue(), sgn_cst_spl.getValue()); } if (auto int_spl = llvm::dyn_cast_if_present<IntegerAttr>(splat),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
// Return an Attr representation of the value. static DenseElementsAttr GetF32Scalar(OpBuilder *builder, float value) { return DenseElementsAttr::get( tensorflow::GetTypeFromTFTensorShape({}, builder->getF32Type()), FloatAttr::get(builder->getF32Type(), value)); } // Returns a TF_CastOp to F32. This function is used for CastOps that are // intermediate nodes in a TableGen pattern result. In such a case, the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
">= " # x # " && $_op.getOperand(" # n # ").getType().cast<ShapedType>()." "getRank() <= " # y>]>>; def TFL_FloatNonNegative : AttrConstraint< CPred<"$_self.isa<FloatAttr>() && " "!$_self.cast<FloatAttr>().getValue().isNegative()">, "whose value is non-negative">; def TFL_BoolTrue : AttrConstraint< CPred<"$_self.isa<BoolAttr>() && $_self.cast<BoolAttr>().getValue()">,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0)