Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for function_ref (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

          Operation* op, llvm::function_ref<bool(Operation*)> filter) const;
    
      // pass the filter (returning true) will be included.
      const llvm::SmallVector<Operation*, 4>& DirectControlSuccessors(
          Operation* op) const;
      llvm::SmallVector<Operation*, 4> DirectControlSuccessors(
          Operation* op, llvm::function_ref<bool(Operation*)> filter) const;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

    // Returns a failure if a cycle prevents the merge from happening correctly
    // without breaking dominance. The IR is left in invalid state in case of
    // failure.
    void CollectCandidateIslands(
        llvm::function_ref<bool(llvm::StringRef, Operation*)>
            is_op_calling_func_for_cluster,
        Operation* op, StringRef cluster_name,
        SmallPtrSet<Operation*, 16>& islands_set,
        SmallPtrSet<Operation*, 16>& wrapped_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf.cc

    }
    
    // Run the TF XLA Bridge based on the input pipeline, which can be either TPU
    // bridge pipeline or non TPU bridge pipeline.
    tensorflow::Status RunTFXLABridge(
        ModuleOp module,
        llvm::function_ref<void(OpPassManager &pm)> pipeline_builder,
        llvm::StringRef module_name = llvm::StringRef(),
        llvm::StringRef dump_prefix = "tf_xla_bridge_v1") {
      // Explicitly check that the TensorFlow dialect can constant fold ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

      // Returns a list of all of the mergable islands found in the graph.
      iterator_range<
          llvm::filter_iterator<SmallVector<MergedIsland>::const_iterator,
                                function_ref<bool(const MergedIsland&)>>>
      GetMergableIslands() const {
        function_ref<bool(const MergedIsland&)> filter_fn =
            [](const MergedIsland& merged_island) {
              return merged_island.islands.size() > 1;
            };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

    // size variables before finally changing the function type.
    void ModifyFunctionSignature(
        func::FuncOp func, llvm::SmallDenseMap<Value, Value>* stack_var_to_size_var,
        llvm::function_ref<std::optional<Type>(int64_t)> arg_to_stack_type,
        llvm::function_ref<void(ArrayRef<BlockArgument>)> handle_new_size_vars =
            nullptr) {
      auto new_input_types = llvm::to_vector<8>(func.getFunctionType().getInputs());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

      // Inserts constraints for multiple values.
      void Insert(ValueRange value, ValueConstraint constraint);
    
      // Walk all the constraints owned by this set.
      void Walk(llvm::function_ref<void(Value, ValueConstraint)> walk) const;
    
      // Returns the constraint of the value if it exists, or None otherwise.
      std::optional<ValueConstraint> GetConstraint(Value value) const;
      bool HasConstraint(Value value) const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      *buffer = broadcast.getOutput();
      return success();
    }
    
    std::optional<RankedTensorType> GetElementTypeFromAccess(
        Value collection, ModuleOp module,
        llvm::function_ref<std::optional<Type>(Operation*)> infer_from_op) {
      for (auto& use : collection.getUses()) {
        if (auto while_op = llvm::dyn_cast<TF::WhileOp>(use.getOwner())) {
          auto body = while_op.body_function();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      if (it == sorted_control_predecessors_.end()) return empty_operation_set_;
      return it->second;
    }
    
    llvm::SmallVector<Operation*, 4>
    SideEffectAnalysisInfo::DirectControlPredecessors(
        Operation* op, llvm::function_ref<bool(Operation*)> filter) const {
      llvm::SmallVector<Operation*, 4> result;
      auto it = sorted_control_predecessors_.find(op);
      if (it == sorted_control_predecessors_.end()) return result;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

    // and sizes.
    void ModifyFunctionSignature(
        func::FuncOp func, Type size_type,
        llvm::SmallDenseMap<Value, SizeInfo>* buffer_to_size,
        llvm::function_ref<std::optional<Type>(int64_t)> arg_to_buffer_type,
        llvm::function_ref<bool(int64_t)> arg_buffer_size_is_fixed) {
      auto new_input_types = llvm::to_vector<8>(func.getFunctionType().getInputs());
      int64_t original_arg_count = new_input_types.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

    // adding required gradient arguments.
    void ChangeFunctionInputSignature(
        func::FuncOp func,
        const llvm::SmallDenseMap<int64_t, llvm::SmallVector<string, 4>>& grads,
        llvm::function_ref<Type(int64_t)> ta_arg_buffer_type,
        llvm::function_ref<bool(int64_t)> ta_accumulate_on_write,
        llvm::SmallDenseMap<Value, TensorArrayStats>* stats) {
      int64_t original_args = func.getNumArguments();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
Back to top