Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for GetBlock (0.28 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockPayload.java

    public abstract class BlockPayload {
        private Block block;
    
        public Block getBlock() {
            return block;
        }
    
        public void setBlock(Block block) {
            this.block = block;
        }
    
        public BlockPointer getPos() {
            return getBlock().getPos();
        }
    
        public BlockPointer getNextPos() {
            return getBlock().getNextPos();
        }
    
        protected abstract int getSize();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

    };
    
    // Checks if `op` is nested in `block`.
    bool OpInBlock(Operation* op, Block* block) {
      Block* op_block = op->getBlock();
      while (op_block) {
        if (op_block == block) return true;
        if (auto* parent_op = op_block->getParentOp()) {
          op_block = parent_op->getBlock();
        } else {
          break;
        }
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FileBackedBlockStore.java

            nextBlock = 0;
        }
    
        @Override
        public void attach(BlockPayload block) {
            if (block.getBlock() == null) {
                block.setBlock(new BlockImpl(block));
            }
        }
    
        @Override
        public void remove(BlockPayload block) {
            BlockImpl blockImpl = (BlockImpl) block.getBlock();
            blockImpl.detach();
        }
    
        @Override
        public void flush() {
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/cluster_util.cc

               .DirectControlPredecessors(
                   to_merge,
                   [&c](Operation* pred) {
                     Operation* const last_c_op = c.ops.back();
                     return last_c_op->getBlock() == pred->getBlock() &&
                            last_c_op->isBeforeInBlock(pred);
                   })
               .empty();
      if (has_control_predecessors_after_cluster) {
        return false;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 28 00:32:55 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

        assert(op && "member operation must be not null");
    
        for (Operation *user : op->getUsers()) {
          // Skip users in other blocks.
          if (user->getBlock() != op->getBlock()) continue;
    
          // Skip users is in the `dst_root` or `src_root` clusters, if we'll merge
          // roots they'll become a single cluster and will not violate the
          // dominance property after that.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java

            store.close();
        }
    
        @Override
        public void clear() {
            store.clear();
        }
    
        @Override
        public void remove(BlockPayload block) {
            Block container = block.getBlock();
            store.remove(block);
            freeListBlock.add(container.getPos(), container.getSize());
        }
    
        @Override
        public <T extends BlockPayload> T readFirst(Class<T> payloadType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

    LogicalResult SortTopologically(Block::iterator begin, Block::iterator end) {
      Block* block = begin->getBlock();
      // Either sort from `begin` to end of block or both `begin` and
      // `end` should belong to the same block.
      assert(end == block->end() ||
             end->getBlock() == block && "ops must be in the same block");
    
      // Track the ops that still need to be scheduled in a set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

    // order of ops in tf_executor.graph.
    LogicalResult LiftIslandOpInnerOpsFromGraph(tf_executor::GraphOp graph) {
      auto graph_position = graph.getOperation()->getIterator();
      Block* parent_block = graph.getOperation()->getBlock();
      for (Operation& op : graph.GetBody().without_terminator()) {
        auto island_op = llvm::dyn_cast<tf_executor::IslandOp>(op);
        if (!island_op)
          return op.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

        if (args_permutation.empty() || res_permutation.empty()) return;
    
        mlir::Operation* op = layout_sensitive_interface.getOperation();
        Location loc = op->getLoc();
        OpBuilder builder = OpBuilder::atBlockEnd(op->getBlock());
    
        auto perm_attr = [&](Permutation permutation) -> DenseIntElementsAttr {
          auto perm_ty = RankedTensorType::get({4}, builder.getIntegerType(64));
          return DenseIntElementsAttr::get(perm_ty, permutation);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

          if (mlir::dyn_cast_or_null<BlockArgument>(operand)) continue;
          auto operand_op = operand.getDefiningOp();
          if (IsConstant(operand_op)) continue;
          if (operand_op->getBlock() != op->getBlock()) {
            return WalkResult::interrupt();
          }
        }
        return WalkResult::advance();
      });
      return !walk_result.wasInterrupted();
    }
    
    // It reduces the following pattern:
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top