Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for emitError (0.15 sec)

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

      if (!input_type || !mlir::isa<StringType>(input_type.getElementType()) ||
          !input_type.hasRank()) {
        return func.emitError() << "Input should be a string tensor";
      }
    
      const std::vector<int> kValidNumOfOutput = {1, 2, 3};
      if (input_type.getRank() >= kValidNumOfOutput.size()) {
        return func.emitError()
               << "Unrecognized input rank: " << input_type.getRank();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

          return global_tensor.emitError()
                 << "'type' and 'value' attributes should "
                    "have compatible tensor types";
        }
      }
      if (!global_tensor.getIsMutable()) {
        if (!mlir::cast<TensorType>(global_tensor.getType()).hasStaticShape()) {
          return global_tensor.emitError()
                 << "'type' attribute for immutable 'tf_saved_model.global_tensor' "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

          // check too.
          op.emitError() << "Input tensor [" << input_index
                         << "] is a state tensor, but has more than one use.";
          return failure();
        }
        auto stats = mlir::dyn_cast<DenseFPElementsAttr>(stats_op.getLayerStats());
        if (!stats || stats.getNumElements() != 2) {
          stats_op.emitError("Stats should have 2 values.");
          return failure();
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        if (!flexbuffers::VerifyBuffer(opt_data, opt_size)) {
          return emitError(loc, "invalid custom options");
        }
    
        const flexbuffers::Vector& v =
            flexbuffers::GetRoot(opt_data, opt_size).AsVector();
    
        op_name = v[0].AsString().str();
    
        if (!node_def.ParseFromString(v[1].AsString().str())) {
          return emitError(
              loc, "failed to parse 'custom_options' data into a valid NodeDef");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      if (!output_tensor_type || !output_tensor_type.hasStaticShape()) {
        op.emitError("output type should be static and ranked.");
        return failure();
      }
    
      if (output_tensor_type.getRank() == 0) {
        bool same_scalar = output_tensor_type.getElementType() == input_type;
        if (!same_scalar) {
          op.emitError("input and output should have the same scalar types.");
        }
        return success(same_scalar);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

                sharding)
                .failed()) {
          return cluster_func.emitError("incorrect sharding format for inputs");
        }
    
        const auto input_sharding_type = sharding.type();
    
        auto tiled_sharding_mismatched = [&](int tiled_input_size) {
          return cluster_func.emitError(
              llvm::formatv("incorrect {0}-th tiled input sharding received. "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      attr.getValue().split(attr_tokens, ",");
      if (attr_tokens.empty()) {
        return fused_func_op_.emitError()
               << kTFImplements << " attribute should be set";
      }
    
      // Check if the interface matches.
      if (GetCompositeOpName().str() != attr_tokens[0]) {
        return fused_func_op_.emitError()
               << "Unexpected interface for the composite op. Expected: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top