Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 180 for eraseOp (0.15 sec)

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

                                        OpBuilder* builder) {
      builder->create<func::ReturnOp>(cluster_return_op.getLoc(),
                                      cluster_return_op.getOperands());
      cluster_return_op.erase();
    }
    
    // Builds a function that outlines region attached to cluster_op or launch_op,
    // and inserts built function into given module.
    template <typename ClusterOrLaunchOp>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultRedrawableLabelTest.groovy

            given:
            label.text = "long text"
    
            when:
            redraw()
            label.text = "text"
            redraw()
    
            then:
            1 * ansi.a("long text")
            1 * ansi.cursorLeft(9)
            1 * ansi.a("text")
            1 * ansi.eraseLine(Ansi.Erase.FORWARD)
            0 * ansi._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

      builder->create<tf_device::ReturnOp>(old_terminator->getLoc(),
                                           merged_execute_launch.getResults());
      old_terminator->erase();
    
      // Remove the original TPUExecute op.
      execute_launch.erase();
    
      // Move all regions from old parallel_execute to new parallel_execute.
      for (auto region : llvm::zip(new_parallel_execute_op->getRegions(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

            !cond.getArgument(i).use_empty()) {
          explicitly_consumed_ids.push_back(i);
        }
      }
      // Empty consumed_element_ids implies none of results is used.
      if (explicitly_consumed_ids.empty()) {
        while_op.erase();
        return true;
      }
      // If every element is consumed, one can't reduce any operand.
      if (explicitly_consumed_ids.size() == n) {
        return false;
      }
    
      // Build the dependency graph.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramParser.kt

                checkForSingleBlocksOf(topLevelBlockIds, topLevelBlocks)
    
                checkForTopLevelBlockOrder(topLevelBlocks)
    
                val sourceWithoutComments =
                    source.map { it.erase(comments) }
    
                val buildscriptFragment =
                    topLevelBlocks
                        .singleSectionOf(TopLevelBlockId.buildscriptIdFor(target))
                        ?.let { sourceWithoutComments.fragment(it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

        StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr);
        if (should_fold_op_func(op.getOperand(), op_device)) {
          op.replaceAllUsesWith(op.getOperand());
          op.erase();
        }
        return WalkResult::advance();
      });
    
      func_op.walk([&should_fold_op_func](TF::IdentityNOp op) {
        StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr);
        bool should_fold = llvm::all_of(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/merge_save_function_ops_to_main.mlir

        tf_executor.graph {
          tf_executor.fetch
        }
        return
      }
    }
    // Save function should be erased.
    // CHECK-NOT: @tf_quant__save
    
    // Test that the contents of @tf_quant__save are copied to @main.
    // CHECK: func.func @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

                                             StringPiece func_name);
    
      // Runs the decompose passes on the user_module.
      Status DecomposeGraph(mlir::ModuleOp user_module);
    
      // Erases the tfr_module created.
      void Destroy();
    
     private:
      mlir::ModuleOp tfr_module_;
      mlir::PassManager pm_;
    
      GraphExportConfig export_confs_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        return std::get<TF::MlirLocalVarOp>(op).getResource();
      }
    }
    
    void LocalVarOp_erase(LocalVarOp &op) {
      if (auto var_handle_op = std::get_if<TF::VarHandleOp>(&op)) {
        var_handle_op->erase();
      } else {
        std::get<TF::MlirLocalVarOp>(op).erase();
      }
    }
    
    std::optional<LocalVarOp> IsLocalVarOp(Operation &op) {
      if (TF::MlirLocalVarOp mlir_local_var_op =
              llvm::dyn_cast<TF::MlirLocalVarOp>(&op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

        block.eraseArgument(argument_index_to_remove);
        argument_types.erase(argument_types.begin() + argument_index_to_remove);
      }
    
      // Rewrite return if there are variable writes.
      const int return_operands_size = return_operands.size();
      if (return_operands_size > num_results_before) {
        builder.create<func::ReturnOp>(return_op.getLoc(), return_operands);
        return_op.erase();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top