- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 95 for emitError (0.13 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc
auto interface_name = GetInterFaceName(func); if (!interface_name.has_value()) continue; auto target = GetTargetAnnotation(func); if (!target.has_value()) { func.emitError("we cannot get hardware info for this function."); signalPassFailure(); } float total_cost = GetCostForFunc(&func, *target); OpBuilder builder(func); UpdateCost(func, total_cost, &builder);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
// failure. template <typename OpT> LogicalResult GetOp(Region* region, OpT* result) { *result = {}; for (auto op : region->getOps<OpT>()) { if (*result) return op.emitError("should be unique within a function"); *result = op; } return success(); } LogicalResult RunOnRegion(Region* region) { RecvTPUEmbeddingActivationsOp recv_op;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc
int32_t container_size = get_resource_op->getAttrOfType<mlir::ArrayAttr>("container").size(); if (!(indices_size == shared_name_size && shared_name_size == container_size)) { return get_resource_op->emitError() << "length of attribute arrays do not match. indices = " << indices_size << ", shared_name = " << shared_name_size << ", container = " << container_size; } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
patterns.add<RemoveTpuOp>(ctx); patterns.add<RemoveIdentity>(ctx); if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) { module_op.emitError() << "quant-convert-tpu-model-to-cpu pattern " "conversion did not converge."; signalPassFailure(); return; } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc
!llvm::isa<func::ReturnOp, func::FuncOp, CallableOpInterface>(op)) { SetAnnotation(op, kDevice, "CPU", builder); device_is_set = true; } } if (!device_is_set) { op->emitError("cannot set target device for this ops"); } } void TargetAnnotationPass::runOnFunction() { auto func = getFunction(); OpBuilder builder(func); func.walk([&](Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 19:32:06 UTC 2023 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc
RewritePatternSet patterns(ctx); func::FuncOp func = getOperation(); patterns.add<ConvertCustomAggregationOpToQuantStats>(ctx); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { func.emitError() << "quant-convert-tf-custom-aggregator-op-to-quant-stats failed."; signalPassFailure(); } } } // namespace std::unique_ptr<OperationPass<func::FuncOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc
bool *hadFailure; bool failableRewrite(FakeQuantOp op, PatternRewriter &rewriter) const { auto converter = ExpressedToQuantizedConverter::forInputType(op.getType()); if (!converter) { return (op.emitError("unsupported quantized type conversion"), true); } quant::QuantizedType elementType = static_cast<const ConcreteRewriteClass *>(this) ->convertFakeQuantAttrsToType(op, converter.expressed_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc
launch.erase(); return success(); } void LaunchToDeviceAttributePass::runOnOperation() { const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } auto result = getOperation().walk([&tf_dialect](tf_device::LaunchOp launch) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc
target.addIllegalOp<mhlo::DotGeneralOp, mhlo::DotOp, mhlo::TransposeOp>(); if (failed(applyPartialConversion(getOperation(), target, std::move(patterns)))) { getOperation().emitError("mhlo to TFLite legalization failed."); signalPassFailure(); } } } // namespace void PopulateLegalizeHloToTFLitePatterns(RewritePatternSet* patterns,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc
return std::nullopt; // `call_op` is not a quantized function call. } absl::StatusOr<Method> method = GetQuantizationMethod(call_op); if (!method.ok()) { call_op->emitError() << "Failed to get quantization method: " << method.status().ToString(); return std::nullopt; } QuantizationResult result{}; result.mutable_quantizable_unit()->set_name(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0)