Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 208 for emitError (0.23 sec)

  1. tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc

              llvm::raw_string_ostream os{error_message};
              os << "The argument with type ";
              arg.getType().print(os);
              os << " should have one user, which should be tfr.cast.";
              func->emitError(error_message);
              return;
            }
          }
        }
    
        builder.setInsertionPoint(terminator);
        // Replace tfr.cast(tensor<quant_type>) -> output
        // with tfr.cast(tensor<storage_type>) -> output
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

      // Apply patterns to reachable functions.
      for (Operation* op : reachable_functions) {
        assert(isa<func::FuncOp>(op));
        if (failed(applyPatternsAndFoldGreedily(op, patterns))) {
          return op->emitError() << kBadDecompositionMessage;
        }
      }
    
      // Apply patterns to device cluster ops.
      // Note: This module search for cluster ops is a bit wasteful as we could have
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_types.h

                                MLIRContext* context, ArrayRef<StringAttr> attrs) {
        return Base::getChecked(emitError, context, attrs);
      }
    
      static Derived get(MLIRContext* context) { return get({}, context); }
    
      // TODO(fengliuai): fix the implementation
      static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass.cc

              absl::StrCat("Node `", op->getName().getStringRef().str(), "` ",
                           "is a launch op which should have been removed by "
                           "outside compilation");
    
          op->emitError() << launch_error;
          LOG(ERROR) << launch_error;
          return WalkResult::interrupt();
        }
    
        if (HasXlaOutsideCompilationMarker(*op)) {
          std::string outside_compilation_error = absl::StrCat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 22 19:52:08 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

      if (!(tensor_type && tensor_type.hasRank())) {
        return op->emitError()
               << "cannot convert op with unranked or non-tensor input type "
               << tensor_type << ".";
      }
    
      int rank = tensor_type.getRank();
      if (rank <= partition_dim) {
        return op->emitError() << "cannot partition " << first_operand_type
                               << " (rank = " << rank << ") along dimension "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K 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_remaining_ops.cc

          host_module.str(), op->getContext(), &module_for_func);
      if (!status.ok()) {
        return op.emitError()
               << "attribute 'host_mlir_module' can not be deserialized. "
               << status.message();
      }
    
      func::FuncOp func = module_for_func->lookupSymbol<func::FuncOp>("host_func");
      if (!func)
        return op.emitError()
               << "serialized module in attribute 'host_mlir_module' does not "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 20:05:58 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

      auto result_type =
          OpTrait::util::getBroadcastedType(x.getType(), y.getType());
      if (!result_type) {
        if (incompatible_shape_error.getValue()) {
          mlir::emitError(loc, "non-broadcastable operands");
        } else {
          return UnrankedTensorType::get(builder->getI1Type());
        }
      }
    
      auto ranked_type = mlir::dyn_cast<RankedTensorType>(result_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_input_dialect_to_executor_pass.cc

                              " which is not an accepted dialect";
          op->emitError() << error;
          return WalkResult::interrupt();
        }
    
        if (IsTfDeviceClusterFuncOp(op)) {
          std::string error =
              "failed TF functional to executor validation, op "
              "tf_device.cluster_func is not allowed";
          op->emitError() << error;
          return WalkResult::interrupt();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top