Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 216 for emitError (0.15 sec)

  1. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

          failed(AddFloatAttr(func, attrs, "w_scale", &fbb)))
        return failure();
      auto use_regular_nms =
          mlir::dyn_cast_or_null<BoolAttr>(attrs.get("use_regular_nms"));
      if (!use_regular_nms) {
        return func.emitError()
               << "use_regular_nms attribute is not set or not a bool";
      }
      fbb.Int("use_regular_nms", use_regular_nms.getValue());
    
      fbb.EndMap(start_map);
      fbb.Finish();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

        // previous optimize global tensors pass). If not, this pass has to fail
        // since it cannot perform one of its goals.
        if (global_tensor.getIsMutable()) {
          if (allow_mutable_tensors) continue;
          global_tensor.emitError()
              << "is not immutable, try removing mutable variables in your model "
                 "since mutable variables are currently not supported through "
                 "this converter";
          return signalPassFailure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      auto parent_module = entry_func->getParentOfType<ModuleOp>();
      auto versions_attr = parent_module->getAttr(kVersionsAttr);
      if (!versions_attr)
        return parent_module.emitError(CreateMissingAttributeMsg(kVersionsAttr));
    
      module_for_func.get().getOperation()->setAttr(kVersionsAttr, versions_attr);
      SymbolTable symbol_table(module_for_func.get());
    
      while (!referenced.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

    }
    
    bool EmitMustBeConstantError(Operation* op) {
      if (operations_to_skip->contains(op->getRegisteredInfo()->getTypeID())) {
        IncrementCounterFor(mlir_non_static_op_skip_count, op);
        return true;
      }
      emitError(op->getLoc()) << absl::StrCat(
          "Node `", op->getName().getStringRef().str(), "` ", kMustBeConstantError);
      return false;
    }
    
    bool IsStaticOperation(Operation* op) {
      for (auto o : op->getResults()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc

      Type storageType;
      int64_t qmin;
      int64_t qmax;
      if (getDefaultStorageParams(numBits, narrowRange, isSigned, ctx, storageType,
                                  qmin, qmax)) {
        return (emitError(loc, "unsupported FakeQuant number of bits: ") << numBits,
                nullptr);
      }
    
      // Special case where min/max is close enough. The tensor contents are all
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

      std::unique_ptr<llvm::MemoryBuffer> mem_buffer;
      llvm::StringRef quantized_function_library =
          GetFunctionLibrary(quantization_method_, op_set_);
    
      if (quantized_function_library.empty()) {
        emitError(module.getLoc())
            << "Failed to get function library for the opset.";
        signalPassFailure();
        return;
      }
    
      mem_buffer =
          llvm::MemoryBuffer::getMemBuffer(quantized_function_library,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc

      for (llvm::scc_iterator<const CallGraph *> scci =
               llvm::scc_begin<const CallGraph *>(&call_graph);
           !scci.isAtEnd(); ++scci) {
        if (scci.hasCycle()) {
          auto err = module.emitError()
                     << "A recursive call graph cannot be transformed to "
                        "one use for all functions. Functions in the "
                        "recursive cycle are: ";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        if (target_opset_ == OpSet::UNIFORM_QUANTIZED) {
          ShapedType new_output_type = ConvertIntToQint(
              mlir::cast<ShapedType>(output_type), rewriter.getContext());
          if (!new_output_type) {
            q_op->emitError(
                "Failed to convert the type to the corresponding qtype.");
            return failure();
          }
          output_types = {new_output_type};
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc

          // Rewire the inputs.
          duplicated_dq_op->setOperand(0, duplicated_input_op->getResult(0));
          op->setOperand(index, duplicated_dq_op->getResult(0));
        } else {
          op->emitError()
              << "We cannot duplicate the value since it's not constant.\n";
          return failure();
        }
      }
      return success();
    }
    
    void SplitMergedOperandsPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

        ModuleOp module, tensorflow::Session* session) {
      const tensorflow::DeviceMgr* mgr = nullptr;
      auto status = session->LocalDeviceManager(&mgr);
      if (!status.ok()) {
        module->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
        return failure();
      }
    
      // Fetch all VarHandleOp.
      llvm::StringSet<> variable_names;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top