Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for emitOpError (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

        if (size_split < -1)
          return op.emitOpError(
              "elements of 'size_splits' should be greater than or equal to -1");
        if (negative_size_split_loc != -1)
          return op.emitOpError("'size_splits' can only have one -1");
        negative_size_split_loc = i;
      }
    
      if (negative_size_split_loc != -1) {
        if (total_size_splits > dim_size)
          return op.emitOpError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

                  options.insert(arg);
                }
              }
            } else {
              op->emitOpError("Predecessor op doesn't implement BranchOpInterface");
              return failure();
            }
          }
        }
        if (!options.empty()) {
          if (options.size() != 1) {
            op->emitOpError("Incompatible code paths.");
            return failure();
          } else {
            *out = *options.begin();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

            if (!backend_config) {
              op->emitOpError()
                  << "is missing attribute '" << kTfBackendConfigAttrName << "'";
              return WalkResult::interrupt();
            }
    
            auto called_index_attr = mlir::dyn_cast_or_null<IntegerAttr>(
                backend_config.get(kCalledIndexAttrName));
            if (!called_index_attr) {
              op->emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top