Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for LaunchFuncOp (0.24 sec)

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

    // Rewrites tf_device::LaunchFuncOp into TF::PartitionedCallOp.
    struct ConvertLaunchFuncToTFCallPass
        : public impl::ConvertLaunchFuncToTFCallPassBase<
              ConvertLaunchFuncToTFCallPass> {
      void runOnOperation() override;
    };
    
    void ConvertLaunchFuncToTFCallPass::runOnOperation() {
      ModuleOp module = getOperation();
      module.walk([&](tf_device::LaunchFuncOp launch) {
        OpBuilder builder(launch);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 21:08:09 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

          builder->getStringAttr(kFuncAttr),
          mlir::SymbolRefAttr::get(builder->getContext(), outlined_func.getName()));
    
      builder->setInsertionPoint(launch_op);
      auto cluster_func_op = builder->create<tf_device::LaunchFuncOp>(
          launch_op.getLoc(), outlined_func.getFunctionType().getResults(),
          live_ins.getArrayRef(), launch_op->getAttrs());
    
      launch_op.replaceAllUsesWith(cluster_func_op);
      launch_op.erase();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      int num_pre_cluster_regions = 0;
      int num_post_cluster_regions = 0;
      int num_cluster_regions = 0;
      for (mlir::Region& region : parallel_execute.getRegions()) {
        if (llvm::isa<tf_device::LaunchFuncOp>(region.front().front())) {
          if (num_cluster_regions == 0) {
            num_pre_cluster_regions++;
          } else {
            num_post_cluster_regions++;
          }
        } else {
          num_cluster_regions++;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // Creates a pass that outlines regions of tf_device.launch operations.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLaunchOutliningPass();
    
    // Creates a pass that converts tf_device::LaunchFuncOp into
    // TF::PartitionedCallOp.
    std::unique_ptr<OperationPass<ModuleOp>> CreateConvertLaunchFuncToTFCallPass();
    
    // A pass that decomposes composite resource operations into primitive ones like
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      ];
    }
    
    def ConvertLaunchFuncToTFCallPass : Pass<"tf-device-convert-launch-func-to-tf-call", "ModuleOp"> {
      let summary = "Rewrites tf_device::LaunchFuncOp to TF::PartitionedCallOp";
    
      let description = [{
        This pass converts tf_device::LaunchFuncOp into an equivalent
        TF::PartitionedCallOp so that it can be exported to TensorFlow GraphDef.
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

      }) : () -> (tensor<i32>)
      return %cluster : tensor<i32>
    }
    ```
    ### `-tf-device-convert-launch-func-to-tf-call`
    
    _Rewrites tf_device::LaunchFuncOp to TF::PartitionedCallOp_
    
    This pass converts tf_device::LaunchFuncOp into an equivalent
    TF::PartitionedCallOp so that it can be exported to TensorFlow GraphDef.
    ### `-tf-device-index-selector`
    
    _Fold tf.DeviceIndex to constant._
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
Back to top