Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 310 for getUsers (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/topological_sort.cc

        while (!todo.empty()) {
          Value value = todo.front();
          todo.pop();
          // All operations that have all their inputs available are good to go.
          // Uses, not Users, in case getUsers ever dedups.
          for (OpOperand& operand : value.getUses()) {
            Operation* user = ancestor[operand.getOwner()];
            remaining_incoming_data_edges[user]--;
            if (remaining_incoming_data_edges[user] == 0 &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 08 17:01:11 UTC 2022
    - 5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

      // ops in first_if and the ops in second_if, it's not safe to merge
      // them.
      std::vector<Operation*> dependencies;
      for (auto* user : first_if.getOperation()->getUsers()) {
        if (!downstream_if_ops.contains(user)) {
          dependencies.push_back(user);
        }
      }
      for (auto* successor :
           side_effect_analysis.DirectControlSuccessors(first_if.getOperation())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

          min -= kNearZeroTolerance;
          max += kNearZeroTolerance;
        }
      }
    };
    
    template <typename VerifierT>
    bool UsedBy(Operation* op) {
      for (Operation* user : op->getUsers()) {
        if (llvm::isa_and_nonnull<VerifierT>(user)) return true;
      }
      return false;
    }
    
    template <typename VerifierT>
    void CreateVerifier(Operation* quantizing_op, Operation* quantized_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

            value.setType(CloneTypeWithNewElementType(value.getType(),
                                                      rewriter.getF32Type()));
            rewriter.setInsertionPointAfterValue(value);
            for (Operation* user : op->getUsers()) {
              for (int i = 0; i < user->getNumOperands(); i++) {
                if (user->getOperand(i) == value) {
                  Value bf16_cast = rewriter.create<TF::CastOp>(
                      user->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

            head_outside_compiled_ops.insert(&cluster_op);
        }
      }
    
      for (auto head_outside_compiled_op :
           llvm::reverse(head_outside_compiled_ops)) {
        auto users = head_outside_compiled_op->getUsers();
        if (users.empty() ||
            HasOutsideCompilationAttribute(head_outside_compiled_op))
          continue;
    
        bool should_expand_op_to_host_computation = true;
        for (auto consumer_op : users) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc

          made_changes = false;
          for (auto func :
               llvm::make_early_inc_range(module.getOps<func::FuncOp>())) {
            ArrayRef<Operation *> users = symbol_users.getUsers(func);
            if (users.size() <= 1) {
              continue;
            }
    
            // At this point, we know we are going to change the module.
            made_changes = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc

      for (const auto &[resource_handle, var_handle_ops] : resources) {
        if (std::all_of(var_handle_ops.begin(), var_handle_ops.end(),
                        [](Operation *op) {
                          for (auto *user : op->getUsers()) {
                            if (!OnlyHasReadEffect(user)) return false;
                          }
                          return true;
                        })) {
          read_only_vars.insert(resource_handle);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc

      for (Operation& op : region->front()) {
        for (Value v : op.getResults()) {
          // A value is live-out if any of its users are not inside value producer's
          // region.
          bool is_live_out = llvm::any_of(v.getUsers(), [&](Operation* user) {
            return !region->isAncestor(user->getParentRegion());
          });
    
          if (is_live_out) live_outs->emplace_back(v);
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 13:30:21 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

      LogicalResult matchAndRewrite(func::CallOp call_op,
                                    PatternRewriter& rewriter) const override {
        if (call_op.getNumResults() != 1) return failure();
        auto users = call_op->getUsers();
        for (auto user : users) {
          if (!llvm::isa<mlir::stablehlo::UniformDequantizeOp>(user)) {
            return failure();
          }
        }
        auto func_name = call_op.getCallee();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      queue.push(root_op);
      while (!queue.empty()) {
        Operation* op = queue.front();
        queue.pop();
        if (llvm::isa<tf_device::ReturnOp>(op)) continue;
        ops_to_move.insert(op);
        for (Operation* user : op->getUsers()) {
          if (!ops_to_move.contains(user)) {
            queue.push(user);
          }
        }
      }
      return ops_to_move;
    }
    
    tf_device::LaunchOp CreateLaunchForBlock(OpBuilder* builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top