Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for emitOpError (0.64 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc

      if (!device_type_.hasValue()) return;
      auto func_op = getOperation();
    
      auto walk_result = func_op->walk([&](TF::StatelessRandomGetAlgOp op) {
        if (failed(ConvertGetAlgOp(op))) {
          op->emitOpError(
              "Could not convert and remove Device specific information");
          return WalkResult::interrupt();
        }
    
        return WalkResult::advance();
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

            mlir::cast<FlatSymbolRefAttr>(sym_ref).getValue());
    
        if (!init_func_op)
          return session_initializer.emitOpError()
                 << "the initializer function does not exist";
    
        if (!init_func_op.getFunctionType().getResults().empty())
          return session_initializer.emitOpError()
                 << "the initializer function should have no output";
    
        auto exported_names = GetExportedNames(init_func_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

          auto ret = func.front().getTerminator();
          auto block_arg =
              mlir::dyn_cast<BlockArgument>(ret->getOperand(result_idx));
          if (!block_arg) {
            return op->emitOpError("result #")
                   << result_idx << " not tied to function argument for branch @"
                   << func.getName();
          }
          if (!common_arg_index.has_value()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

          }
          if (axis < 0 || (input_type.hasRank() && axis >= input_type.getRank())) {
            return transpose_op.emitOpError("perm must be in [-rank, rank)");
          }
          if (std::count(axes.begin(), axes.end(), axis) > 0) {
            return transpose_op.emitOpError("perm cannot have duplicated axis");
          }
          axes.push_back(axis);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      if (failed(tensorflow::GetDevicesFromOp(moduleOp, &devices)))
        return moduleOp.emitOpError() << "No available devices.";
      llvm::ArrayRef<tensorflow::DeviceNameUtils::ParsedName> device_names =
          devices.device_names();
      auto status_or_system_devices = GetTPUSystemDevices(device_names);
      if (!status_or_system_devices.ok())
        return moduleOp.emitOpError()
               << "error in fetching TPU_SYSTEM devices: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc

                existing_resource->getName().getStringRef() ||
            resource_op->getResult(0).getType() !=
                existing_resource->getResult(0).getType()) {
          resource_op->emitOpError(
              "This op has the same `shared_name` but different type with another "
              "resource op in the function");
          signalPassFailure();
          return;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 04:26:16 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.cc

        tf_device::ClusterOp tpu_cluster = pair.second;
        if (node_to_cluster.count(node)) {
          if (node_to_cluster[node].getOperation() != tpu_cluster) {
            node->getCallableRegion()->getParentOp()->emitOpError(
                "The same function is reachable from multiple TPU Clusters.");
          }
        } else {
          node_to_cluster[node] = tpu_cluster;
          auto result = node->getCallableRegion()->walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      if (!ranked_type)
        return context_op->emitOpError()
               << "A map_outside_compilation op's input and output types must be "
                  "ranked tensors.";
      ArrayRef<int64_t> in_shape = ranked_type.getShape();
      if (in_shape.empty() || in_shape[0] < 0) {
        return context_op->emitOpError()
               << "A map_outside_compilation op's input and output shapes must "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

                              cast<CallableOpInterface>(called_func.getOperation()),
                              called_func.getCallableRegion(),
                              /* shouldCloneInlinedRegion = */ false))) {
          call_op.emitOpError() << "Failed to inline\n";
          return WalkResult::interrupt();
        }
        called_func.erase();
        call_op.erase();
        return WalkResult::advance();
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      if (!num_cores_per_replica_attr)
        return cluster_func.emitOpError(
            CreateMissingAttributeMsg(tensorflow::kNumCoresPerReplicaAttr));
    
      int num_cores_per_replica = num_cores_per_replica_attr.getInt();
    
      auto topology_attr =
          cluster_func->getAttrOfType<StringAttr>(tensorflow::kTopologyAttr);
      if (!topology_attr)
        return cluster_func.emitOpError(
            CreateMissingAttributeMsg(tensorflow::kTopologyAttr));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top