Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 216 for emitError (0.17 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        if (!replication_info_attr)
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        auto replication_info_attr_str =
            mlir::dyn_cast<StringAttr>(replication_info_attr);
        if (!replication_info_attr_str ||
            replication_info_attr_str.getValue().empty())
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        // Remove `name` attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

        if (std::find_if(
                attr_to_op_map.begin(), attr_to_op_map.end(), [&](auto attr_op) {
                  return std::get<0>(attr_op).getName() == attribute.getName();
                }) == attr_to_op_map.end()) {
          emitError(UnknownLoc::get(&context),
                    "Could not find attribute: " + attribute.getName().str());
          return failure();
        }
    
        Operation* owner_op;
        for (const auto& [attr, val] : attr_to_op_map) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      ReplicateOp::ensureTerminator(body, parser.getBuilder(), result.location);
    
      if (!llvm::hasSingleElement(body))
        return parser.emitError(loc) << "expects a single block region";
    
      Operation& terminator = body.front().back();
      if (!isa<ReturnOp>(terminator))
        return parser.emitError(loc) << "expects a tf_device.return terminator";
    
      // Get the results type from the terminator type inside the replicate,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K 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/tensorflow/ir/tf_traits.h

        }
        for (auto operand_type : op->getOperandTypes()) {
          if (!mlir::tf_type::HasCompatibleElementTypes(
                  operand_type, type, /*may_ignore_ref_type_lhs=*/true))
            return op->emitError() << "requires all operands and results to have "
                                      "compatible element types";
        }
        return success();
      }
    };
    
    namespace detail {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. 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)
Back to top