Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 79 for emitOpError (0.25 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

            return fetch.emitOpError()
                   << "operand #" << i
                   << " is a control type, can't be bound to a graph result";
          break;
        }
        if (i >= num_results)
          return fetch.emitOpError()
                 << "operand #" << i << " does not have a graph results to bind";
        if (graph.getResult(i).getType() != operand.getType()) {
          return fetch.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.cc

      if (!replicate_attr || !compile_attr)
        return op.emitOpError() << "is expected to have either both or none of '"
                                << kReplicationInfoAttr << "' and '"
                                << kCompileDeviceTypeAttr << "' attributes.";
      if (replicate_attr.getValue().empty())
        return op.emitOpError()
               << "has an empty '" << kReplicationInfoAttr << "' attribute.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

      if (!matchPattern(group_assignment_value, m_Constant(&group_assignment))) {
        return op->emitOpError() << "expects constant group_assignment";
      }
      replica_groups = mlir::cast<DenseIntElementsAttr>(
          hlo::convertElementsAttr(group_assignment, builder.getIntegerType(64)));
      if (replica_groups.getType().getRank() != 2) {
        return op->emitOpError() << "group_assignment should have rank 2, got "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

          // Invalid case since there are multiple loc:@ attributes.
          op->emitOpError()
              << "expects only one named location in '_class' attribute, but got "
              << classes_attr;
          return StringRef();
        }
        result = node_name.drop_front(kLocationPrefix.size());
      }
      if (result.empty()) {
        op->emitOpError() << "expects variable name in '_class' attribute, but got "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

          /*target_tensor_names=*/{}, &resource_tensors);
      if (!status.ok()) {
        return module.emitOpError()
               << "failed to run the provided session: " << status.message();
      }
    
      const DeviceMgr* device_manager;
      if (!(session->LocalDeviceManager(&device_manager).ok())) {
        return module.emitOpError() << "failed to get local device manager";
      }
    
      // Read all underlying tensors of the variables from the session.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

        if (!string_attr)
          return op->emitOpError(llvm::formatv(
              "bad '{0}' attribute at index {1}, not a string", kDevicesAttr, idx));
    
        if (DeviceNameUtils::ParseFullName(string_attr.getValue().str(), &device)) {
          devices->AddDevice(device);
        } else {
          return op->emitOpError(
              llvm::formatv("bad '{0}' attribute, '{1}', not a valid device",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      if (it == buffer_to_size->end()) {
        return scatter.emitOpError("unknown tensor list");
      }
      auto buffer = scatter.getInputHandle();
      OpBuilder builder(scatter);
      auto indices_type =
          mlir::cast<RankedTensorType>(scatter.getIndices().getType());
      if (!indices_type) return scatter.emitOpError("unranked indices shape");
      auto shape_type = RankedTensorType::get({2}, builder.getIntegerType(32));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

        if (IfOp if_op = llvm::dyn_cast<IfOp>(op)) {
          if (failed(ConvertIfOp(if_op))) {
            op->emitOpError() << "failed to convert to region form";
            return WalkResult::interrupt();
          }
        } else if (CaseOp case_op = llvm::dyn_cast<CaseOp>(op)) {
          if (failed(ConvertCaseOp(case_op))) {
            op->emitOpError() << "failed to convert to region form";
            return WalkResult::interrupt();
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

      if (!lengths_const) return split.emitOpError("non-constant split lengths");
      *count = lengths_const.getValue().getNumElements();
      if (*count <= 0) return split.emitOpError("non-positive split count");
      auto buffer_type = split.getValue().getType().dyn_cast<RankedTensorType>();
      if (!buffer_type || !buffer_type.hasStaticShape() ||
          buffer_type.getRank() < 1) {
        return split.emitOpError("unknown or invalid split tensor shape");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      for (OpType op : func.getOps<OpType>()) {
        if (found_op != nullptr) {
          func.emitOpError() << "number of " << found_op.getOperationName()
                             << " in loop body is not 1";
          return LogicalResult::failure();
        }
        if (GetReplicationAttr(op) != replication_attr) {
          op.emitOpError() << "is not part of the replication region "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top