Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 131 for emitError (0.27 sec)

  1. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

      if (parser.parseKeyword(&keyword)) return Type();
    
      if (keyword == "tf_tensor") return TFTensorType::get(getContext());
      if (keyword == "tf_allocator") return TFAllocatorType::get(getContext());
    
      parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword;
      return Type();
    }
    
    /// Print a type registered to this dialect.
    void FallbackDialect::printType(Type type, DialectAsmPrinter &os) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

                                        BlockArgument& block_arg) {
      // check that inputs length is same as num_replicas.
      if (inputs.size() != replicate.getN()) {
        return replicate.emitError()
               << "Expected numper of inputs (" << inputs.size()
               << ") to append to replicate to be num_replicas ("
               << replicate.getN() << ")";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

        if (!sym) continue;
        auto callee = symtab.lookup<func::FuncOp>(sym.getRootReference());
        if (!callee) {
          // This is not expected to happen in practice.
          return op->emitError()
                 << "Cannot find function " << sym.getRootReference();
        }
        callees.push_back(callee);
      }
      return success();
    }
    
    bool HasSingleBlock(func::FuncOp func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        if (op.intermediates.size() != 5) {
          auto err = errors::InvalidArgument(
              "operator has intermediate tensors but the number of them is not "
              "five.");
          return emitError(loc, err.ToString()), err;
        }
        // Create intermediate value
    
        const llvm::SmallVector<llvm::StringRef, 5> kIntermediateNames = {
            "input_to_input_intermediate", "input_to_forget_intermediate",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

    // 2. The wrapped launch op should be placed on CPU.
    LogicalResult CheckOpIsValid(Operation* op) {
      auto launch_op = llvm::dyn_cast<tf_device::LaunchOp>(op->getParentOp());
      if (!launch_op) {
        op->emitError() << "TPUCopyWithDynamicShapeOp is not in a launch";
      }
      std::string device_str = launch_op.getDeviceAttr().getValue().str();
      std::string cpu0_device;
      if (failed(tensorflow::GetNonReplicatedCPU0(op, &cpu0_device)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

        if (!replication_info_attr)
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        auto replication_info_attr_str =
            mlir::dyn_cast<StringAttr>(replication_info_attr);
        if (!replication_info_attr_str ||
            replication_info_attr_str.getValue().empty())
          return metadata_op.emitError() << kBadReplicateInfoAttrMsg;
    
        // Remove `name` attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

      target.addLegalDialect<arith::ArithDialect>();
    
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
        getOperation().emitError("Composite lowering pass failed.");
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCompositeLoweringPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

        if (std::find_if(
                attr_to_op_map.begin(), attr_to_op_map.end(), [&](auto attr_op) {
                  return std::get<0>(attr_op).getName() == attribute.getName();
                }) == attr_to_op_map.end()) {
          emitError(UnknownLoc::get(&context),
                    "Could not find attribute: " + attribute.getName().str());
          return failure();
        }
    
        Operation* owner_op;
        for (const auto& [attr, val] : attr_to_op_map) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

            new_arg = block.addArgument(arg_type, loc);
            quantize_op.setOperand(new_arg);
          } else {
            input_type.print(llvm::errs() << "Requested input type ");
            quantize_op.emitError(" Couldn't be modified to the requested type.");
            return failure();
          }
          new_input_types[i] = arg_type;
          arg.dropAllUses();
          if (quantize_op.use_empty()) {
            quantize_op.erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      ReplicateOp::ensureTerminator(body, parser.getBuilder(), result.location);
    
      if (!llvm::hasSingleElement(body))
        return parser.emitError(loc) << "expects a single block region";
    
      Operation& terminator = body.front().back();
      if (!isa<ReturnOp>(terminator))
        return parser.emitError(loc) << "expects a tf_device.return terminator";
    
      // Get the results type from the terminator type inside the replicate,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top