Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 208 for emitError (0.12 sec)

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

                              " not in tf functional dialect";
          op->emitError() << error;
          return WalkResult::interrupt();
        }
    
        if (op->hasAttr(mlir::TF::kXlaOutsideCompilationAttr)) {
          std::string error =
              "op has outside compilation attribute _xla_outside_compilation which "
              "is not allowed after clustering";
          op->emitError() << error;
          return mlir::WalkResult::interrupt();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      if (!llvm::hasSingleElement(body))
        return parser.emitError(loc) << "expects a single block region";
    
      // Get the results type from the terminator type inside the graph.
      Operation &fetch = body.back().back();
      if (!isa<FetchOp>(fetch))
        return parser.emitError(loc) << "expects a tf_executor.fetch terminator";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

        return func->emitError()
               << "'" << attr_name << "' attribute for " << kMaxUnpooling
               << " must be set and has size of " << N;
      }
      results->reserve(N);
    
      for (Attribute integer_attr : array_attr.getValue()) {
        IntegerAttr value = mlir::dyn_cast<IntegerAttr>(integer_attr);
        if (!value) {
          return func->emitError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc

      if (current_device->empty()) {
        func.emitError(
            "cannot find target annotation or unknown device specified for current "
            "function");
        return;
      }
    
      auto current_inference_type = GetInferenceTypeAnnotation(func);
      if (!current_inference_type.has_value() ||
          current_inference_type == UNKNOWN) {
        func.emitError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

      Block& block = function.front();
    
      const tensorflow::DeviceMgr* mgr = nullptr;
      auto status = session->LocalDeviceManager(&mgr);
      if (!status.ok())
        return function->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
    
      // Fetch all varHandleOp in the function.
      llvm::SmallVector<TF::VarHandleOp, 4> var_ops;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc

          // GuaranteeAllFuncsOneUsePass to remove "tf.entry_function" or
          // "tf_saved_model.initializer_type" attribute from the callee of the
          // inner calls if the problem ever arises.
          entry_func->emitError()
              << "TF2XLA MLIR Non-replicated Phase 1 Bridge expects no nested calls"
                 " of entry functions as they prevent graph traversal in some "
                 "passes from "
                 "working correctly";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 19:29:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.cc

                                              Location loc) {
      auto dims_type = mlir::dyn_cast<RankedTensorType>(dims.getType());
      if (!dims_type) return success();
      if (dims_type.getRank() > 1)
        return emitError(loc, "dimensions can only be 0D or 1D tensor");
    
      auto input_type = mlir::dyn_cast<RankedTensorType>(input.getType());
      if (!input_type) return success();
      int64_t rank = input_type.getRank();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      RewritePatternSet patterns(context);
      stablehlo::populateStablehloToVhloPatterns(&patterns, &converter, context);
    
      if (failed(applyPartialConversion(module, target, std::move(patterns)))) {
        return module->emitError("Failed partial conversion to VHLO");
      }
      return success();
    }
    
    LogicalResult ApplyVhloToVersionPatterns(ModuleOp module,
                                             const std::string &version) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      DeviceNameUtils::ParsedName parsed_name;
      if (!DeviceNameUtils::ParseFullName(
              absl::string_view(device.data(), device.size()), &parsed_name))
        return mlir::emitError(loc) << "invalid device '" << device << "'";
    
      if (!parsed_name.has_id)
        return mlir::emitError(loc) << "device '" << device << "' has no id";
    
      *device_ordinal = parsed_name.id;
      return mlir::success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. 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)
Back to top