- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 130 for emitError (0.61 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc
StringRef getDescription() const final { return "Renames the entrypoint in SavedModel to `main`"; } void runOnOperation() override { auto fail = [&](Operation* op, std::string message) { op->emitError(message); signalPassFailure(); }; DenseMap<StringRef, func::FuncOp> entrypoints; auto module = getOperation(); module.walk([&](func::FuncOp op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.cc
if (keyword == "future") return FutureType::get(getContext()); if (keyword == "promise") return PromiseType::get(getContext()); if (keyword == "async_handle") return AsyncHandleType::get(getContext()); parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword; return mlir::Type(); } // Print a type registered to this dialect. void MlrtDialect::printType(mlir::Type type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cc
mlir::DialectAsmParser &parser) const { llvm::StringRef keyword; if (parser.parseKeyword(&keyword)) return mlir::Type(); if (keyword == "tensor") return TFTensorType::get(getContext()); parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword; return mlir::Type(); } // Print a type registered to this dialect. void TensorflowMlrtDialect::printType(mlir::Type type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc
ModuleOp module_op = getOperation(); for (auto init_func_op : GetInitializerFunctions(module_op)) { if (!init_func_op) return; if (init_func_op.getBlocks().size() != 1) { init_func_op.emitError("expects exactly one block in the MLIR function"); return signalPassFailure(); } auto var_handle_ops = init_func_op.getBlocks().front().getOps<VarHandleOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
auto input_shapes_attr = func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr); if (!input_shapes_attr) return success(); if (input_shapes_attr.size() != func_op.getNumArguments()) { return func_op->emitError( "Number of arguments and 'tf._input_shapes' " "attribute size do not match. ") << "Num args: " << func_op.getNumArguments()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K 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/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/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/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)