Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for BitVector (0.42 sec)

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

        : public impl::RemoveUnusedArgumentsPassBase<RemoveUnusedArgumentsPass> {
      void runOnOperation() override;
    };
    
    // Return a bitvector that marks all return values that always come from
    // the same value.
    llvm::BitVector GetInvariantReturns(Region* region, int number_of_results) {
      llvm::BitVector invariant(number_of_results, true);
      std::vector<Value> used_argument(number_of_results, nullptr);
      for (Block& block : region->getBlocks()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          new_while_op.getCond().takeBody(while_op.getCond());
          new_while_op.getBody().takeBody(while_op.getBody());
          llvm::BitVector erase_indices;
          UpdateTerminatorArguments(new_while_op.getBody(), args_to_erase,
                                    erase_indices);
          llvm::BitVector body_bit_vector(
              new_while_op.getBody().front().getNumArguments());
          for (auto i : args_to_erase) body_bit_vector.set(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

              }
            }
          }
        }
      }
    
      DenseSet<GlobalTensorOp> frozen_global_tensors;
      for (auto func : module.getOps<func::FuncOp>()) {
        llvm::BitVector args_to_erase(func.getNumArguments());
        DenseMap<Operation *, llvm::BitVector> remove_operands;
        OpBuilder builder(func.getBody());
    
        for (BlockArgument val : func.getArguments()) {
          if (!freezeable[val]) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/runtime/heapdump.go

    	argoff uintptr   // where the arguments start in the frame
    	arglen uintptr   // size of args region
    	args   bitvector // if args.n >= 0, pointer map of args region
    	sp     *uint8    // callee sp
    	depth  uintptr   // depth in call stack (0 == most recent)
    }
    
    // dump kinds & offsets of interesting fields in bv.
    func dumpbv(cbv *bitvector, offset uintptr) {
    	for i := uintptr(0); i < uintptr(cbv.n); i++ {
    		if cbv.ptrbit(i) == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/stkframe.go

    	argp uintptr // pointer to function arguments
    }
    
    // reflectMethodValue is a partial duplicate of reflect.makeFuncImpl
    // and reflect.methodValue.
    type reflectMethodValue struct {
    	fn     uintptr
    	stack  *bitvector // ptrmap for both args and results
    	argLen uintptr    // just args
    }
    
    // argBytes returns the argument frame size for a call to frame.fn.
    func (frame *stkframe) argBytes() uintptr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

    // result types and doing appropriate use replacements. `results_to_eliminate`
    // is a bitvector of result positions to eliminate. If its null, then all unused
    // results of the operation will be eliminated.
    void EliminateUnusedResults(
        Operation *op, const llvm::BitVector *results_to_eliminate = nullptr) {
      auto can_eliminate = [&](OpResult &result) -> bool {
        if (!result.use_empty()) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/deduplicate_bound_input_bindings.cc

    void DedupBoundInputBindingPass::runOnOperation() {
      func::FuncOp func = getOperation();
      if (!mlir::tf_saved_model::IsExported(func)) return;
      llvm::SmallDenseMap<Attribute, unsigned, 8> unique_bound_inputs;
      llvm::BitVector arg_indices_to_erase(func.getNumArguments());
      for (unsigned i = 0, e = func.getNumArguments(); i < e; i++) {
        auto attr = func.getArgAttrOfType<FlatSymbolRefAttr>(
            i, "tf_saved_model.bound_input");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:25:35 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <memory>
    #include <string>
    
    #include "llvm/ADT/BitVector.h"
    #include "llvm/ADT/PostOrderIterator.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallSet.h"
    #include "mlir/Dialect/Affine/Utils.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_dataflow.h

    #ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_ANALYSIS_RESOURCE_DATAFLOW_H_
    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_ANALYSIS_RESOURCE_DATAFLOW_H_
    
    #include <algorithm>
    #include <vector>
    
    #include "llvm/ADT/BitVector.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/Support/Casting.h"
    #include "llvm/Support/Debug.h"
    #include "mlir/Analysis/DataFlow/DeadCodeAnalysis.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

      void runOnOperation() override;
    };
    
    void MoveResourceArgsToEnd(func::FuncOp callee) {
      llvm::DenseMap<BlockArgument, BlockArgument> mapping;
      unsigned num_params = callee.getNumArguments();
      llvm::BitVector removed_params(num_params);
      // Copy the resource-type parameters to the end.
      for (unsigned i = 0; i < num_params; ++i) {
        BlockArgument param = callee.getArgument(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top