Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 293 for runOnOperation (0.18 sec)

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

    struct CanonicalizeCompileAndReplicateAttributesPass
        : public impl::CanonicalizeCompileAndReplicateAttributesPassBase<
              CanonicalizeCompileAndReplicateAttributesPass> {
      void runOnOperation() override;
    };
    
    void CanonicalizeCompileAndReplicateAttributesPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      ModuleOp module_op = func_op->getParentOfType<ModuleOp>();
      mlir::OpBuilder builder(module_op.getContext());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    struct ReplicaIDToDeviceOrdinalPass
        : public impl::ReplicaIDToDeviceOrdinalPassBase<
              ReplicaIDToDeviceOrdinalPass> {
      void runOnOperation() override;
    };
    
    // Returns whether op requires `device_ordinal` attribute.
    bool RequiresDeviceOrdinalAttribute(Operation* op) {
      return (llvm::isa<TF::EnqueueTPUEmbeddingSparseTensorBatchOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.h.inc"
    
    struct DeviceAttributeToLaunch
        : public impl::DeviceAttributeToLaunchPassBase<DeviceAttributeToLaunch> {
      void runOnOperation() override;
    };
    
    void WrapOpInLaunch(Operation* op, llvm::StringRef device) {
      OpBuilder builder(op);
    
      auto launch_op = builder.create<tf_device::LaunchOp>(
          op->getLoc(), builder.getStringAttr(device),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_inline_device_ops.cc

    // XlaInlineDeviceOps Pass will inline cluster op based in the parent region.
    struct XlaInlineDeviceOpsPass
        : public impl::XlaInlineDeviceOpsPassBase<XlaInlineDeviceOpsPass> {
      void runOnOperation() override;
    };
    
    void InlineDeviceOp(tf_device::ClusterOp cluster_op) {
      auto& block = cluster_op.GetBody();
    
      llvm::SmallVector<Operation*, 4> non_terminator_ops;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_input_dialect_to_executor_pass.cc

              VerifyInputDialectToExecutorPass> {
     public:
      void runOnOperation() override;
    };
    
    bool IsTfDeviceClusterFuncOp(Operation* op) {
      std::string kClusterFuncOpName = "tf_device.cluster_func";
      return op->getName().getStringRef().str() == kClusterFuncOpName;
    }
    
    void VerifyInputDialectToExecutorPass::runOnOperation() {
      Operation* func_op = getOperation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc

     public:
      explicit TFXLADeviceSpecificTransforms(std::optional<StringRef> device_type) {
        if (device_type.has_value()) {
          device_type_ = device_type.value().str();
        }
      }
      void runOnOperation() override;
    
     private:
      LogicalResult ConvertGetAlgOp(TF::StatelessRandomGetAlgOp get_alg_op);
    };
    
    LogicalResult TFXLADeviceSpecificTransforms::ConvertGetAlgOp(
        TF::StatelessRandomGetAlgOp get_alg_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass.cc

    class VerifyNoOutsideCompilationMarkersPass
        : public impl::VerifyNoOutsideCompilationMarkersPassBase<
              VerifyNoOutsideCompilationMarkersPass> {
     public:
      void runOnOperation() override;
    };
    
    bool IsLaunchOp(Operation& op) {
      return dyn_cast<tf_device::LaunchOp>(op) != nullptr;
    }
    
    bool IsDeviceClusterOp(Operation& op) {
      return dyn_cast<tf_device::ClusterOp>(op) != nullptr;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 22 19:52:08 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

    struct ExecutorDialectToFunctionalConversion
        : public impl::ExecutorDialectToFunctionalPassBase<
              ExecutorDialectToFunctionalConversion> {
      void runOnOperation() override;
    };
    
    // Extracts inner ops of tf_executor.island ops in a tf_executor.graph, in the
    // order of ops in tf_executor.graph.
    LogicalResult LiftIslandOpInnerOpsFromGraph(tf_executor::GraphOp graph) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_splits.cc

          }
        }
      }
      return predecessors;
    }
    
    struct TPUColocateSplits
        : public impl::TPUColocateSplitsPassBase<TPUColocateSplits> {
      void runOnOperation() override;
    };
    
    void TPUColocateSplits::runOnOperation() {
      getOperation().walk([&](Operation* op) {
        if (auto split = llvm::dyn_cast<TF::SplitOp>(op)) {
          if (HasDevice(split) || split->getAttrOfType<ArrayAttr>(kClassAttr))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 18:44:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/convert_to_legacy_compile_and_replicate_attributes.cc

    struct ConvertToLegacyCompileAndReplicateAttributesPass
        : public impl::ConvertToLegacyCompileAndReplicateAttributesPassBase<
              ConvertToLegacyCompileAndReplicateAttributesPass> {
      void runOnOperation() override;
    };
    
    LogicalResult ConvertToLegacyAttributes(func::FuncOp func_op) {
      auto result = func_op->walk([&](mlir::Operation* op) {
        if (failed(TF::HasValidCompilationAndReplicationAttributes(*op)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top