- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 363 for getLoc (0.11 sec)
-
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
// current op, so the result op has input with tensor type. if (auto cast_op = dyn_cast_or_null<CastOp>(input_op)) { Value input_to_cast = CastToNonDerivedType(rewriter, call_op.getLoc(), cast_op, input_tfr_type); inputs->push_back(input_to_cast); if (failed(AddDerivedAttrs(rewriter, input_tfr_type,
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/tensorflow/passes/prepare_quantize_drq.cc
return false; } } rewriter.setInsertionPointAfter(op); auto q = rewriter.create<quantfork::QuantizeCastOp>(op->getLoc(), cast_type, op.getResult()); auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(), expressed_type, q); quantize_op->setOperand(quantize_operand_num, dq.getResult());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
} else { return rewriter.notifyMatchFailure(bcast_op, "Unsupported element type."); } Value new_const_op = rewriter.create<mhlo::ConstantOp>(bcast_op.getLoc(), result); rewriter.replaceOp(bcast_op, {new_const_op}); return success(); } }; using FoldBroadcastInDimBeforeMulOp = FoldBroadcastInDimBeforeBinaryElementwiseOp<mhlo::MulOp>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc
auto type = result.getType(); result.setType(converter.convertType(result.getType())); auto new_value = converter.materializeArgumentConversion( rewriter, result.getLoc(), type, {result}); rewriter.replaceAllUsesExcept(result, new_value, new_value.getDefiningOp()); } // Wrap operands in an an unrealized cast to create a cast to buffer any type
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 19:48:51 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc
SmallVector<NamedAttribute> attrs{op->getAttrs()}; attrs.push_back(call_target); auto custom_call = rewriter.create<mlir::stablehlo::CustomCallOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), attrs); rewriter.replaceOp(op, custom_call.getResults()); return success(); } } // namespace template <typename OpTy>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 19 01:14:04 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc
quant_type.castFromExpressedType(expressed_type); rewriter.setInsertionPointAfter(op); auto q = rewriter.create<quantfork::QuantizeCastOp>( op->getLoc(), quantized_type, op->getResult(0)); auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(), expressed_type, q); quantizable_op->setOperand(1, dq.getResult()); } private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
} TypeAttr type_attr = TypeAttr::get(new_type); auto quantize = builder.create<TFL::QuantizeOp>(value.getLoc(), new_type, value, type_attr); auto dequantize = builder.create<TFL::DequantizeOp>( value.getLoc(), expressed_type, quantize.getOutput()); value.replaceAllUsesWith(dequantize);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc
const size_t num_moved_children = old_parallel_execute.getRegions().size() - 1; *new_parallel_execute = builder->create<mlir::tf_device::ParallelExecuteOp>( old_parallel_execute->getLoc(), num_moved_children + num_cores_per_replica, concatenated_output_types); // `cluster_idx` is the index of the child with the `ClusterFuncOp`, which // will be replaced. int cluster_idx = -1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 13 03:57:18 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/fake_quant_utils.cc
if (!parent_op) continue; builder.setInsertionPoint(parent_op); // Recreate the operation by using the wrapper's operands and return types. // TODO(fengliuai): copy the regions. OperationState state(op->getLoc(), op->getName().getStringRef(), parent_op->getOperands(), parent_op->getResultTypes(), op->getAttrs(), op->getSuccessors()); Operation* inlined = builder.create(state);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 4.3K bytes - Viewed (0)