- Sort Score
- Result 10 results
- Languages All
Results 41 - 43 of 43 for DenseFPElementsAttr (0.33 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
auto layer_stats = mlir::cast<mlir::DenseFPElementsAttr>(stats_op.getLayerStats()); std::optional<mlir::ElementsAttr> axis_stats = stats_op.getAxisStats(); std::optional<uint64_t> axis = stats_op.getAxis(); std::vector<float> mins, maxs; mlir::DenseFPElementsAttr min_max_attr = axis_stats.has_value() ? mlir::cast<mlir::DenseFPElementsAttr>(axis_stats.value()) : layer_stats;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
//===----------------------------------------------------------------------===// OpFoldResult PowOp::fold(FoldAdaptor adaptor) { auto operands = adaptor.getOperands(); auto constant_y = operands[1].dyn_cast_or_null<DenseFPElementsAttr>(); if (constant_y && constant_y.isSplat()) { APFloat y_value = constant_y.getSplatValue<APFloat>(); auto output_type = getType().cast<ShapedType>(); if (y_value.isZero() && output_type.hasStaticShape()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
// scratch1 = rsqrt(var + epsilon) RankedTensorType scalar_float = tensorflow::GetTypeFromTFTensorShape({}, kernel_type); auto epsilon = rewriter.create<ConstantOp>( loc, DenseFPElementsAttr::get(scalar_float, {op.getEpsilon()})); auto add_op = rewriter.create<chlo::BroadcastAddOp>( loc, var, epsilon.getResult(), scalar_broadcast_dims);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)