Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testIf1Else (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/functional-control-flow-to-regions.mlir

      // CHECK: "tf.Cast"
      // CHECK: [[Result1:%.*]] = func.call @testIf1Else
      // CHECK: "tf.Yield"([[Result1]])
      func.return %0 : tensor<2xf32>
    }
    
    // -----
    
    // If with no inputs, some outputs
    // CHECK: func private @testIf1Then{{.+}}
    // CHECK: func private @testIf1Else{{.+}}
    func.func private @testIf1Then() -> tensor<*xf32>
    func.func private @testIf1Else() -> tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 06 21:59:28 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/functional-control-flow-to-cfg.mlir

    // RUN: tf-opt %s -tf-functional-control-flow-to-cfg -split-input-file | FileCheck %s
    
    func.func private @testIf1Then(tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
    func.func private @testIf1Else(tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
    
    // CHECK-LABEL: func @testIf1Result(%arg0: tensor<i1>, %arg1: tensor<*xf32>, %arg2: tensor<*xf32>)
    func.func @testIf1Result(tensor<i1>, tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

    func.func private @testIf1Then(tensor<*xf32>) -> tensor<*xf32>
    func.func private @testIf1Else(tensor<*xf32>) -> tensor<*xf32>
    func.func @testIf1Result(%arg0: tensor<i1>, %arg1: tensor<*xf32>) -> tensor<*xf32> {
      // CHECK: "tf.If"({{.+}}) <{else_branch = @testIf1Else, {{.+}} then_branch = @testIf1Then}
      %0 = "tf.IfRegion"(%arg0) ({
        %1 = func.call @testIf1Then(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
Back to top