Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for eraseResult (0.11 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

              .replaceAllUsesWith(new_call_op.getResult(0));
          users_to_erase.push_back(user);
        }
        for (auto user : users_to_erase) rewriter.eraseOp(user);
        rewriter.eraseOp(call_op);
        func_op.eraseResult(0);
        func_op.insertResult(0, new_call_op.getResult(0).getType(),
                             /*resultAttrs=*/nullptr);
    
        // Modify the quantized fused function to do dequantize+relu(6).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

    // Operation::eraseArguments does (but for results).
    // This is a lengthy bit of code, since it has to recreate the operation.
    // TODO(kramm): Move this under utils/ somewhere.
    void EraseResults(Operation* op, llvm::BitVector erase) {
      assert(!op->getNumRegions());
      std::vector<Type> result_types;
      for (auto result : op->getResults()) {
        if (!erase[result.getResultNumber()]) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          llvm::BitVector result_indices_to_erase;
          UpdateTerminatorArguments(func, args_to_erase, result_indices_to_erase);
          EraseFuncOpArguments(func, args_to_erase);
    
          func.eraseResults(result_indices_to_erase);
        } else if (auto read_var = dyn_cast<TF::ReadVariableOp>(user_op)) {
          // Read variables was already replaced by constant op. Just remove the op.
          read_var->erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top