- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 578 for rewrites (0.21 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
output_ty.getRank(), rewriter.getIntegerType(32)); shape_attr = DenseIntElementsAttr::get(output_int_type, output_shape); } auto shape = rewriter.create<ConstOp>(pack_op.getLoc(), shape_attr); // TODO(b/173622615): Remove after fixed. ReplaceTfOpWithNewOp<ReshapeOp>(rewriter, pack_op, output_ty, pack_op.getOperand(0), shape);
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/tensorflow/ir/tf_ops_a_m.cc
} } // Inline the region into the block containing the IfRegion. rewriter.inlineBlockBefore(®ion.front(), op); rewriter.eraseOp(yield); rewriter.replaceOp(op, updated_results); return success(); } } // anonymous namespace void IfRegionOp::getCanonicalizationPatterns(RewritePatternSet& results,
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/stablehlo/passes/prepare_quantize.cc
PatternRewriter& rewriter) const override { auto preceding_qcast = q_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>(); if (!preceding_qcast) return failure(); auto new_qcast = rewriter.create<quantfork::QuantizeCastOp>( q_op.getLoc(), q_op.getType(), preceding_qcast.getArg()); new_qcast->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 05:11:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
// TODO(b/267700110): Handle multiple input/output cases. rewriter.replaceOp(replicated_input_op, replicated_input_op.getInputs()); } else if (auto replicated_output_op = dyn_cast_or_null<TF::TPUReplicatedOutputOp>(op)) { // TODO(b/267700110): Handle multiple input/output cases. rewriter.replaceOp(replicated_output_op, replicated_output_op.getInput()); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// // When compiling a single main package, build writes the resulting // executable to an output file named after the last non-major-version // component of the package import path. The '.exe' suffix is added // when writing a Windows executable. // So 'go build example/sam' writes 'sam' or 'sam.exe'. // 'go build example.com/foo/v2' writes 'foo' or 'foo.exe', not 'v2.exe'. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc
auto *new_ewise_op = rewriter.create(op->getLoc(), op->getName().getIdentifier(), {tpose_arg1.getOperand(0), tpose_arg2.getOperand(0)}, new_out_type, op->getAttrs()); // Apply original tranpose to output of ewise op. auto out_tpose_op = rewriter.create<TFL::TransposeOp>( new_ewise_op->getLoc(), op->getResult(0).getType(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h
rewriter.setInsertionPointAfter(tf_op.getOperation()); IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits()); BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange()); Type res_type = tf_op.getType(); TypeAttr qtype = quant::GetQuantizedTypeAttr( rewriter, res_type, min_value, max_value, quant_dim, num_bits,
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/lite/stablehlo/transforms/legalize_hlo.cc
/*dilations=*/rewriter.getI64ArrayAttr(dilation)); } else { output = rewriter.create<TF::Conv2DOp>( conv_op.getLoc(), conv_output_type, sliced_lhs, rhs, rewriter.getI64ArrayAttr(strides), /*use_cudnn_on_gpu=*/rewriter.getBoolAttr(true), /*padding=*/rewriter.getStringAttr(padding), /*explicit_paddings=*/rewriter.getI64ArrayAttr(new_padding),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
pkg/wasm/convert.go
status = marshalFailure return nil, fmt.Errorf("failed to marshal new extension config resource: %w", err) } // At this point, we are certain that wasm module has been downloaded and config is rewritten. // ECDS will be rewritten successfully. return nec, nil } func convertNetworkWasmConfigFromRemoteToLocal(ec *core.TypedExtensionConfig, wasmNetworkFilterConfig *networkwasm.Wasm, cache Cache) (*anypb.Any, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
PatternRewriter& rewriter) const override { // It is currently not possible to easily pack the output of a multi-result // op into an op with a single varidic output in `.td`. auto converted = rewriter.create<TFL::CustomOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), "TensorListPopBack", TFL::ConstBytesAttr::get(getContext(), "")); rewriter.replaceOp(op, converted.getResults());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0)