Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for emitOpError (0.39 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc

        if (!llvm::equal(partition_dims, op_partition_dims)) {
          return partitioned_input->emitOpError()
                 << "expects partition_dims = " << partition_dims << " but found "
                 << op_partition_dims;
        } else if (partitioned_input.getIsPacked() !=
                   first_partitioned_input.getIsPacked()) {
          return partitioned_input->emitOpError()
                 << "packing should match across ops";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc

          return emitOpError("layerStats must have a floating point element type");
        }
        if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) {
          return emitOpError("layerStats must have shape [2]");
        }
      }
      // Verify axisStats (optional) attribute.
      if (getAxisStats()) {
        if (!getAxis()) return emitOpError("axis must be specified for axisStats");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc

          return emitOpError("layerStats must have a floating point element type");
        }
        if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) {
          return emitOpError("layerStats must have shape [2]");
        }
      }
      // Verify axisStats (optional) attribute.
      if (getAxisStats()) {
        if (!getAxis()) return emitOpError("axis must be specified for axisStats");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.cc

      }
    
      auto config = GetTfBackendConfig(op);
      if (config == nullptr) {
        op.emitOpError() << "does not have dictionary attribute '"
                         << kTfBackendConfigAttrName << "'";
        return failure();
      }
    
      auto f = config.get(kCalledFuncAttrName);
      if (f == nullptr) {
        op.emitOpError() << "does not have attribute '" << kCalledFuncAttrName
                         << "' in its dictionary attribute '"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc

      if (func != nullptr && func->hasAttr("tfrt_ifrt_serving.program_id")) {
        return emitOpError() << "cannot be nested inside an IFRT program";
      }
    
      for (mlir::Value arg : getArgs()) {
        if (mlir::isa<mlir::TF::ResourceType>(
                mlir::getElementTypeOrSelf(arg.getType()))) {
          return emitOpError()
                 << "does not support passing '!tf.resource' values as arguments";
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_verifiers.cc

      if (!llvm::all_of(interface.GetLayoutDependentArgs(), valid_operand)) {
        return op->emitOpError("layout dependent argument index is out of bound");
      }
    
      auto valid_result = [&](int64_t idx) { return idx < op->getNumResults(); };
      if (!llvm::all_of(interface.GetLayoutDependentResults(), valid_result)) {
        return op->emitOpError("layout dependent result index is out of bound");
      }
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 25 01:54:09 UTC 2020
    - 2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top