Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for IslandOp (0.28 sec)

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

    }
    
    void collect_input_defining_islands(IslandOp op, std::vector<IslandOp>& ops) {
      Operation* wrapped_op = &op.GetBody().front();
      for (Value operand : wrapped_op->getOperands()) {
        IslandOp wrapper = dyn_cast_or_null<IslandOp>(operand.getDefiningOp());
        if (!wrapper || !wrapper.WrapsSingleOp()) continue;
        ops.push_back(wrapper);
      }
    }
    
    void collect_output_users_islands(IslandOp op, std::vector<IslandOp>& 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)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

      // Construct a new island from the given root.
      explicit MergedIsland(IslandOp root) : insert_point(root) {
        islands.push_back(root);
      }
    
      // The insertion point anchor of the merged island, or where the merged island
      // will be inserted when created.
      Operation* const insert_point;
    
      // The set of islands that are to be merged together.
      SmallVector<IslandOp> islands;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

    // (from YieldOps first operand) is forwarded to the IslandOp single data result
    // users.
    struct DropEmptyIslandNoOperandOneDataResult
        : public OpRewritePattern<IslandOp> {
      using OpRewritePattern<IslandOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(IslandOp op,
                                    PatternRewriter &rewriter) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

                               ShapedType const_type) {
      IslandOp while_wrapper = while_op->getParentOfType<IslandOp>();
      assert(while_wrapper && "While op is expected to be wrapped in a IslandOp");
    
      // Get the dummy constant.
      OpBuilder builder(while_wrapper);
      auto loc = NameLoc::get(
          builder.getStringAttr("chain_control_outputs@" + while_op.getBody()));
      IslandOp const_wrapper = GetDummyConstant(builder, const_type, loc);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

        cloned_fetch_op.erase();
      };
    
      return llvm::to_vector(cloned_fetch_op.getFetches());
    }
    
    // Creates a new `IslandOp` that wraps a `TF::NoOp`. The `IslandOp` has control
    // dependencies to the values provided.
    IslandOp CreateNoOpWithControlDependencies(
        const Location loc, GraphOp main_graph_op,
        const ArrayRef<Value> control_dependencies) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc

      cloned_fetch_op.erase();
    
      return control_fetch;
    }
    
    // Creates a new `IdentityOp` wrapped by an `IslandOp`. The identity op returns
    // the `main_file_prefix_arg` and has control dependencies to `control_inputs`.
    IslandOp CreateFilePrefixIdentityOp(const BlockArgument main_file_prefix_arg,
                                        const ArrayRef<Value> control_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

        return ops_have_same_device(sink.GetSource(), sink);
      }
    
      return llvm::isa<tf_executor::EnterOp, tf_executor::ExitOp,
                       tf_executor::IslandOp, tf_executor::MergeOp,
                       tf_executor::SwitchOp>(op);
    }
    
    // Assigns all data results to a specified device.
    void PopulateDeviceForOpResults(
        Operation& op, llvm::StringRef device,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        // Update the control type from tf_type.control to tf_executor.control.
        new_types.back() = rewriter.getType<tf_executor::ControlType>();
    
        // Control operand is attached on tf_executor::IslandOp.
        llvm::SmallVector<Value> island_control_operands;
        llvm::SmallVector<Value> inner_op_operands;
    
        for (Value value : operands) {
          // Because of the property of graph region, the control operands may
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

        if (auto graph = dyn_cast<tf_executor::GraphOp>(op)) {
          value = graph.GetFetch().getOperand(res_index);
        } else if (auto island = dyn_cast<tf_executor::IslandOp>(op)) {
          // Control output is generated by the IslandOp, not the yield in
          // in the Island body.
          if (value == island.getControl()) break;
          value = island.GetYield().getOperand(res_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      }
    };
    
    // Finds first inner op if `op` is a tf_executor.island. Otherwise `op` is
    // returned.
    Operation* GetIslandInnerOpOrSelf(mlir::Operation* op) {
      auto island = llvm::dyn_cast<mlir::tf_executor::IslandOp>(op);
      if (island) return &island.GetBody().front();
      return op;
    }
    
    // Stateful helper class to export a function into a Graph.
    class Exporter {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top