- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for convertToFloat (0.23 sec)
-
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
} SmallVector<float> scale_factors; scale_factors.reserve(filter_scale_attr.size()); for (auto value : filter_scale_attr.getValues<APFloat>()) { scale_factors.push_back(in_scale * value.convertToFloat() / out_scale); } rewriter.setInsertionPoint(scale_factor_op); const Location loc = scale_factor_op->getLoc(); auto result_scale_op = rewriter.create<TF::ConstOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
const llvm::fltSemantics& semantics = op.getMin().getSemantics(); float rmin, rmax; if (&semantics == &APFloat::IEEEsingle()) { rmin = op.getMin().convertToFloat(); rmax = op.getMax().convertToFloat(); } else { rmin = op.getMin().convertToDouble(); rmax = op.getMax().convertToDouble(); } // Range boundaries must be valid. if (rmin >= rmax) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
std::transform(real_values_attr.begin(), real_values_attr.end(), std::back_inserter(real_values), [&](APFloat value) -> float { return value.convertToFloat(); }); const ShapedType new_dense_type = dyn_cast_or_null<ShapedType>( q_type.castExpressedToStorageType(real_values_attr.getType()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
Value features = op.getFeatures(); // Use ConstantLike for `alpha` to match the shape of feature. auto alphaVal = chlo::getConstantLike( rewriter, loc, op.getAlpha().convertToFloat(), features); Value zeroVal = chlo::getConstantLike(rewriter, loc, 0.0, features); Value leakyActivationVal = rewriter.create<mhlo::MulOp>(loc, features, alphaVal);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)