Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IfRegion (0.41 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      let summary = "Merges IfRegion ops together with a common predicate.";
    
      let description = [{
        This pass merges IfRegion ops together if they have the same predicate and it
        is safe to do so (there are no intermediate dependencies, they are in the
        same block, etc).
    
        For example:
    
        ```mlir
        "tf.IfRegion"(%0) ( {
          %2 = "tf.A"() : () -> (tensor<f32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      // However, its probably better to fold the IfRegion instead of having the
      // dead branch stay.
    
      // Inline the region in place of the IfRegion op, and forward the yield
      // inputs to the IfRegion op results. This is possible only if the yield
      // types match the result types.
      auto yield = cast<YieldOp>(region.front().getTerminator());
      auto updated_results = llvm::to_vector<4>(yield.getOperands());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %true = "tf.Const"() {value = dense<true> : tensor<i1>} : () -> tensor<i1>
    
      // CHECK: [[Val0:%.*]] = "tf.Mul"(%arg0, %arg1)
      // CHECK-SAME: device = "/job:localhost/replica:0/task:0/device:GPU:0"
      %0 = "tf.IfRegion"(%true) ({
          %true_value = "tf.Mul"(%arg0, %arg1) {device = "/job:localhost/replica:0/task:0/device:GPU:0"} : (tensor<f32>, tensor<f32>) -> tensor<f32>
          "tf.Yield"(%true_value) : (tensor<f32>) -> ()
        }, {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      bool InferShapeForRestore(Operation* op);
    
      // Infers the shape IfOp outputs based on the shapes of the then and else
      // function result types.
      bool InferShapeForIf(IfOp op);
    
      // Infers the shape IfRegion outputs based on the shapes of the then and else
      // yields.
      bool InferShapeForIfRegion(IfRegionOp op);
    
      // Infers the shape CaseOp outputs based on the shapes of branch function
      // result types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

      func.func @cluster(%arg0 : tensor<i1>) {
        "tf_device.parallel_execute"() ({
          "tf.IfRegion"(%arg0) ({
            // expected-error@+1 {{The ParallelExecute ancestor of a ClusterFunc must be its direct parent.}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
Back to top