- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 578 for rewrites (1.9 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc
} auto lhs_new_concat = rewriter.create<mhlo::ConcatenateOp>( concat->getLoc(), concat.getType().clone(lhs_new_concat_shape), all_dot_lhs, rewriter.getI64IntegerAttr(lhs_batch_dim)); auto rhs_new_concat = rewriter.create<mhlo::ConcatenateOp>( concat->getLoc(), concat.getType().clone(rhs_new_concat_shape), all_dot_rhs, rewriter.getI64IntegerAttr(rhs_batch_dim));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 26.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
changed = true; } } if (changed) { rewriter.finalizeOpModification(branch); return success(); } else { rewriter.cancelOpModification(branch); return failure(); } } LogicalResult matchAndRewrite(TF::IfOp ifop, PatternRewriter& rewriter) const override { bool success =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc
void createNewDequantizeOp(PatternRewriter& rewriter, TF::PartitionedCallOp original_dequantize_op, Operation* user_op, int user_idx, Type new_user_op_type) const { auto op_before_dequantize = original_dequantize_op.getOperand(0); // Create a new dequantize op that is propagated. rewriter.setInsertionPointAfter(user_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
if (!result_elt_type) { return cast_op.getArg(); } Type original_input_type = mlir::cast<TypeAttr>(cast_op.getInputElementType()).getValue(); if (result_elt_type != original_input_type) { UnrankedTensorType result_type = UnrankedTensorType::get(result_elt_type); return rewriter.create<TF::CastOp>(loc, result_type, cast_op.getArg());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
// of its number of users. rewriter.setInsertionPointAfter(op); // create new F16 constant op in that location ConstantOp new_const = rewriter.create<ConstantOp>( op->getLoc(), new_result_type, new_value_attr); ConvertOp dcast = rewriter.create<ConvertOp>(op->getLoc(), old_result_type, new_const); // replace all convert ops with dq op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
auto out_type = op.getZ().getType(); l = rewriter.create<ConvertOp>(op.getLoc(), l, rewriter.getF32Type()); r = rewriter.create<ConvertOp>(op.getLoc(), r, rewriter.getF32Type()); auto intermediate = rewriter.create<TF::FloorDivOp>( op.getLoc(), ChangeTensorElementType(&rewriter, out_type, rewriter.getF32Type()), l, r); auto floor_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
doc/go_mem.html
</p> <pre> *p = i + *p/2 </pre> <p> That is, it must not rewrite the program into this one: </p> <pre> *p /= 2 *p += i </pre> <p> If <code>i</code> and <code>*p</code> start equal to 2, the original code does <code>*p = 3</code>, so a racing thread can read only 2 or 3 from <code>*p</code>. The rewritten code does <code>*p = 1</code> and then <code>*p = 3</code>,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 15:54:42 UTC 2024 - 26.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
rewriter.getIntegerAttr(attribute_type, revised_begin_mask), rewriter.getIntegerAttr(attribute_type, revised_end_mask), /*ellipsis_mask=*/rewriter.getI64IntegerAttr(0), rewriter.getIntegerAttr(attribute_type, revised_new_axis_mask), rewriter.getIntegerAttr(attribute_type, revised_shrink_axis_mask)); return success(); }
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/quantization/tensorflow/ops/tf_quantize_op.cc
rewriter.setInsertionPointAfter(op); auto const_op = rewriter.create<TF::ConstOp>(op.getLoc(), new_type, tensor_proto_attr); auto new_identity_op = rewriter.create<TF::IdentityOp>( op->getLoc(), const_op.getType(), const_op); return new_identity_op.getResult(); } Operation* LogicsForUniformDequanization(PatternRewriter& rewriter,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
auto no_input = rewriter.create<TFL::NoValueOp>( op->getLoc(), rewriter.getNoneType(), rewriter.getUnitAttr()); auto fc_op = rewriter.create<FullyConnectedOp>( op->getLoc(), ArrayRef<Type>{output_type}, /*input=*/lhs, /*filter=*/rhs, /*bias=*/no_input, /*fused_activation_function=*/rewriter.getStringAttr("NONE"), /*weights_format=*/rewriter.getStringAttr("DEFAULT"),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0)