Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for emitError (0.64 sec)

  1. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MockSuccessPass)
    
      explicit MockSuccessPass() = default;
    
     private:
      void runOnOperation() override {
        getOperation().walk([](Operation* nestedOp) {
          nestedOp->emitError()
              << "Error at " << nestedOp->getName().getStringRef().str() << " op";
        });
      };
    };
    
    // MockFailurePass reports errors and fails.
    class MockFailurePass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

    // 2. The wrapped launch op should be placed on CPU.
    LogicalResult CheckOpIsValid(Operation* op) {
      auto launch_op = llvm::dyn_cast<tf_device::LaunchOp>(op->getParentOp());
      if (!launch_op) {
        op->emitError() << "TPUCopyWithDynamicShapeOp is not in a launch";
      }
      std::string device_str = launch_op.getDeviceAttr().getValue().str();
      std::string cpu0_device;
      if (failed(tensorflow::GetNonReplicatedCPU0(op, &cpu0_device)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/python/tfr_wrapper.cc

        if (!module) {
          return false;
        }
    
        mlir::SourceMgrDiagnosticHandler sourceMgrHandler(source_mgr, &ctx);
        if (failed(mlir::verify(*module))) {
          module->emitError("Invalid MLIR module: failed verification.");
          return false;
        }
        return true;
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 13 06:54:12 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

      target.addLegalDialect<arith::ArithDialect>();
    
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("Composite lowering pass failed.");
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCompositeLoweringPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

            new_arg = block.addArgument(arg_type, loc);
            quantize_op.setOperand(new_arg);
          } else {
            input_type.print(llvm::errs() << "Requested input type ");
            quantize_op.emitError(" Couldn't be modified to the requested type.");
            return failure();
          }
          new_input_types[i] = arg_type;
          arg.dropAllUses();
          if (quantize_op.use_empty()) {
            quantize_op.erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_translate.cc

      if (!tensorflow::ParseOutputArrayInfo(input_arrays_flag, &inputs).ok()) {
        return emitError(loc, "parsing input array info failed ")
                   << input_arrays_flag,
               nullptr;
      }
      if (!tensorflow::ParseOutputArrayInfo(output_arrays_flag, &outputs).ok()) {
        return emitError(loc, "parsing output array info failed ")
                   << output_arrays_flag,
               nullptr;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top