- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for value_begin (0.11 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc
return false; if (mlir::isa<FloatType>(element_type)) { auto value = *attr.value_begin<APFloat>(); return value.isNegative() && value.isInfinity(); } else if (element_type.isInteger(1)) { auto value = *attr.value_begin<APInt>(); return value.isZero(); } else { auto value = *attr.value_begin<APInt>(); return element_type.isUnsignedInteger() ? value.isMinValue()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
if (!cond_type || !cond_type.getShape().equals({}) || !cond_type.getElementType().isInteger(/*width=*/1)) return failure(); // Identify the branch to inline. bool cond_value = (*cond.value_begin<APInt>()).getSExtValue(); func::FuncOp func = cond_value ? then_func : else_func; // Make sure that the function has exactly one block to simplify inlining.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc
} if (alg_constant.getNumElements() != 1) { return rewriter.notifyMatchFailure(op, "expected alg to be a scalar"); } uint64_t alg_value = ((*alg_constant.value_begin<APInt>()).getZExtValue()); tensorflow::ConcreteRngAlgorithm alg; if (tensorflow::RNG_ALG_PHILOX == alg_value) { alg = tensorflow::ConcreteRngAlgorithm::RNG_ALG_PHILOX;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 8.1K bytes - Viewed (0)