Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 98 for emitError (0.31 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top