Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 68 of 68 for BlockArgument (0.4 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

            operand_not_in_launch);
      }
    
      // Handle pass through block arguments.
      for (OpOperand& operand :
           original_launch_op.GetBody().getTerminator()->getOpOperands()) {
        if (mlir::isa<BlockArgument>(operand.get())) {
          original_launch_op.getResult(operand.getOperandNumber())
              .replaceAllUsesWith(operand.get());
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      mlir::Block& block = main.getRegion().front();
      xla::XlaBuilder builder("main");
    
      // Create xla_params.
      std::vector<xla::XlaOp> xla_params;
      for (mlir::BlockArgument& arg : block.getArguments()) {
        auto num = arg.getArgNumber();
        xla::Shape shape = xla::TypeToShape(arg.getType());
        xla::XlaOp argop =
            xla::Parameter(&builder, num, shape, absl::StrCat("Arg_", num));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      auto builder = mlir::OpBuilder(main_fn.getBody());
      std::vector<int> args_to_erase;
      for (int idx = 0; idx < args.size(); idx++) {
        const XlaArgument& xla_arg = args[idx];
        mlir::BlockArgument mlir_arg = main_fn.getArgument(idx);
        if (xla_arg.kind == XlaArgument::kResource) {
          mlir::Type element_type;
          if (xla_arg.type == DT_INVALID) {
            return errors::Unimplemented(absl::StrCat(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

        // Additionally remove arguments from the outputs, as it provides liveness
        // throughout (functions as an invisible op above the very first op that
        // returns the arguments).
        for (const BlockArgument arg : main_func.getArguments()) {
          outputs.remove(arg);
        }
      }
    
      ReplaceStablehloOpsWithXlaCallModuleOp(
          SmallVector<Value>(inputs.begin(), inputs.end()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

            // Check device matching for the node defining the resource.
            if (!IsResourceMergeable(resource_attr, device_attr)) continue;
          } else {
            auto resource_arg = resource.dyn_cast<BlockArgument>();
            assert(resource_arg);
            if (resource_arg.getOwner() != &func.front()) continue;
            // Check device matching for the argument defining the resource.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        if (opr) {
          producer = opr.getOwner();
          port = {opr.getResultNumber()};
        } else {
          producer = mlir::cast<BlockArgument>(v);
          port = {0};
        }
      }
      ValuePort(PointerUnion<Operation*, BlockArgument> producer,
                SmallVector<unsigned int, 2> port)
          : producer(producer), port(port) {}
    
      raw_ostream& print(raw_ostream& os) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    namespace {
    
    using llvm::ArrayRef;
    using llvm::SmallVector;
    using mlir::Block;
    using mlir::BlockArgument;
    using mlir::DenseIntElementsAttr;
    using mlir::IRMapping;
    using mlir::Location;
    using mlir::LogicalResult;
    using mlir::ModuleOp;
    using mlir::OpBuilder;
    using mlir::Operation;
    using mlir::OperationPass;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      // have associated tensor and buffer. Build FlatBuffer tensor and buffer for
      // other functions.
      for (unsigned i = 0, e = bb.getNumArguments(); i < e; ++i) {
        mlir::BlockArgument arg = bb.getArgument(i);
        std::string tensor_name;
        if (has_input_attr)
          tensor_name = std::string(name_mapper_.GetUniqueName(arg));
        if (tensor_name.empty()) tensor_name = absl::StrCat("arg", i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top