- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 43 for ReplaceOpWithNewOp (0.29 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
broadcast_multiplier); auto broadcast_rhs = broadcastToFeatureDim( bn_op.getLoc(), input_type, rhs, shape_value, feature_dim, rewriter); rewriter.replaceOpWithNewOp<mhlo::AddOp>(bn_op, lhs, broadcast_rhs); return success(); } }; class UnfuseMhloBatchNormPass : public PassWrapper<UnfuseMhloBatchNormPass, OperationPass<func::FuncOp>> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
/*device_ordinal=*/rewriter.getI64IntegerAttr(0), rewriter.getStringAttr("TPU")); } constexpr int64_t kDefaultCostEstimate = 1000000; rewriter.replaceOpWithNewOp<TF::XlaHostComputeOp>( op, op.getResultTypes(), op.getInputs(), /*ancestors=*/rewriter.getArrayAttr({}), rewriter.getArrayAttr(shape_attrs), /*shape_inference_graph=*/
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc
const auto matmul_type = RankedTensorType::get({rows, cols}, element_type); if (lhs_dims == 2 && rhs_dims == 2) { // When both inputs are matrices, just replace the op with a matmul op. rewriter.replaceOpWithNewOp<TF::MatMulOp>(op, matmul_type, /*a=*/input_lhs, /*b=*/input_rhs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize.cc
quantized_attr = quant::QuantizeLegacy(attr, qtype.getValue()); } else { quantized_attr = quant::Quantize(attr, qtype.getValue()); } if (quantized_attr) { rewriter.replaceOpWithNewOp<QConstOp>(op, qtype, quantized_attr); return success(); } } return failure(); } private: bool legacy_float_scale_; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
mlir::dyn_cast<TensorType>(ToLegalType(op.getOutput().getType()))); if (failed(dense_attr_or)) { op->emitError("failed to get DenseElementAttr."); return failure(); } rewriter.replaceOpWithNewOp<TF::ConstOp>( op, ToLegalType(op.getOutput().getType()), *dense_attr_or); return success(); } }; struct ConvertTFQuantTypes : public impl::ConvertTFQuantTypesBase<ConvertTFQuantTypes> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
~strided_slice_op.getNewAxisMask(); auto attribute_type = rewriter.getIntegerType(64); rewriter.replaceOpWithNewOp<TF::StridedSliceOp>( op, strided_slice_op.getType(), reshape, strided_slice_op.getBegin(), strided_slice_op.getEnd(), strided_slice_op.getStrides(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
auto new_mean_op = rewriter.create<TFL::MeanOp>(mean_op->getLoc(), new_output_type, input, mean_op.getAxis(), mean_op.getKeepDims()); // Insert a requant op. rewriter.replaceOpWithNewOp<TFL::QuantizeOp>( mean_op, output_type, new_mean_op, mlir::TypeAttr::get(output_type)); return success(); } } // namespace tac } // namespace TFL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
// canonical. if (cluster_vals.size() == num_results) return failure(); // Rewrite return op in the cluster. rewriter.setInsertionPoint(return_op); auto new_return = rewriter.replaceOpWithNewOp<tf_device::ReturnOp>(return_op, cluster_vals); // Rewrite the cluster op. rewriter.setInsertionPoint(op); auto new_op = rewriter.create<tf_device::ClusterOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0)