Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for IslandOp (0.27 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

    // for the associated replica island.
    LogicalResult ExpandReplicateIntoReplicas(
        const Dialect* tf_dialect, OpBuilder& builder,
        tf_executor::IslandOp island_op, tf_device::ReplicateOp replicate_op,
        int num_replicas, llvm::SmallVectorImpl<tf_executor::IslandOp>& replicas,
        bool legacy_graph_export, int replica_group_idx) {
      replicas.reserve(num_replicas);
      auto devices = replicate_op.getDevices();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    
    using ::mlir::tf_executor::GraphOp;
    using ::mlir::tf_executor::IslandOp;
    
    constexpr StringRef kSharedNameAttr = "shared_name";
    
    class MergeDuplicateResourceOpsPass
        : public PassWrapper<MergeDuplicateResourceOpsPass,
                             OperationPass<func::FuncOp>> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 04:26:16 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

      SymbolTable outlined_symbol_table(outlined_module);
    
      // Find every island that contains a TPU node and extract it into a new module
      // to run the V1 bridge there.
      llvm::SmallVector<IslandOp, 8> islands_to_outline;
      getOperation().walk([&](IslandOp island_op) {
        auto parent_func = island_op->getParentOfType<func::FuncOp>();
        auto skip_island_outlining =
            parent_func->getAttrOfType<BoolAttr>(mlir::TF::kSkipIslandOutlining);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_executor.h"
    
    namespace mlir {
    namespace TF {
    
    // Converts a single island into multiple islands (one for each op).
    void SplitIsland(mlir::tf_executor::IslandOp island_op,
                     mlir::tf_executor::ControlType control_type);
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Dec 19 21:44:14 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

        // violate the invariant imposed by the GraphExport pipeline that every
        // IslandOp perfectly wraps a single op.
        auto control_type =
            mlir::tf_executor::ControlType::get(tf_dialect->getContext());
        getOperation().walk(
            [&control_type](mlir::tf_executor::IslandOp curr_island) {
              mlir::TF::SplitIsland(curr_island, control_type);
            });
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

      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()
                 << "is not supported for lifting out of tf_executor.graph, "
                    "expected tf_executor.island";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/tf_dataflow.h

              auto result = graph.getResult(arg.getOperandNumber());
              this->join(getLatticeElement(result), *getLatticeElement(arg.get()));
            }
          }
        } else if (auto island = dyn_cast<tf_executor::IslandOp>(op)) {
          for (auto &arg : island.GetYield()->getOpOperands()) {
            auto result = island.getResult(arg.getOperandNumber());
            this->join(getLatticeElement(result), *getLatticeElement(arg.get()));
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top