Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 54 for emitError (0.2 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

      auto to_hardware = GetTargetHardware(to_hardware_str);
      if (from_hardware == nullptr) {
        from_graph.emitError(absl::StrCat(
            "we cannot find the registered hardware: ", from_hardware_str));
      }
    
      if (to_hardware == nullptr) {
        to_graph.emitError(absl::StrCat("we cannot find the registered hardware: ",
                                        to_hardware_str));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

      if (parser.parseKeyword(&keyword)) return Type();
    
      if (keyword == "tf_tensor") return TFTensorType::get(getContext());
      if (keyword == "tf_allocator") return TFAllocatorType::get(getContext());
    
      parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword;
      return Type();
    }
    
    /// Print a type registered to this dialect.
    void FallbackDialect::printType(Type type, DialectAsmPrinter &os) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

        if (!sym) continue;
        auto callee = symtab.lookup<func::FuncOp>(sym.getRootReference());
        if (!callee) {
          // This is not expected to happen in practice.
          return op->emitError()
                 << "Cannot find function " << sym.getRootReference();
        }
        callees.push_back(callee);
      }
      return success();
    }
    
    bool HasSingleBlock(func::FuncOp func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top