Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for cond_false (0.32 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/if_op.mlir

    // CHECK:   %{{.*}} = "tf.If"(%{{.*}}, %{{.*}}, %{{.*}}) <{else_branch = @cond_false, is_stateless = false, then_branch = @cond_true}> : (tensor<1xi1>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
      %0 = "tfl.less"(%arg0, %arg1) : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xi1>
      %1 = "tf.If"(%0, %arg0, %arg1) {else_branch = @cond_false, then_branch = @cond_true, is_stateless = false} : (tensor<1xi1>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/if_op.mlir

    // CHECK-NEXT:       builtin_options_type: MulOptions,
    // CHECK-NEXT:       builtin_options: {
    // CHECK-EMPTY:
    // CHECK-NEXT:       }
    // CHECK-NEXT:     } ],
    // CHECK-NEXT:     name: "cond_false"
    // CHECK-NEXT:   } ],
    // CHECK-NEXT:   description: "MLIR Converted.",
    // CHECK-NEXT:   buffers: [ {
    // CHECK-EMPTY:
    // CHECK-NEXT:   }, {
    // CHECK-EMPTY:
    // CHECK-NEXT:   }, {
    // CHECK-EMPTY:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir

    // RUN: tf-tfrt-opt -tf-to-tfrt="enable-while-parallel-iterations=true" %s | FileCheck %s --dump-input=fail
    
    // CHECK-LABEL: func @cond_false(%arg0: !tfrt.chain, %arg1: !tfrt_fallback.tf_tensor) -> (!tfrt.chain, !tfrt_fallback.tf_tensor)
    func.func @cond_false(%arg0: tensor<i32>) -> tensor<i32> {
      %0 = "tf.Const"() {device = "/device:CPU:0", value = dense<-1> : tensor<i32>} : () -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/promote_resources_to_args.mlir

      %7 = "tf.Pack"(%2, %6) : (tensor<f32>, tensor<f32>) -> tensor<2xf32>
      func.return %7 : tensor<2xf32>
    }
    
    // -----
    
    // A resource is passed into tf.If
    func.func @cond_false(%arg0: tensor<!tf_type.resource<tensor<f32>>>, %arg1: tensor<f32>) -> tensor<f32> {
      func.return %arg1 : tensor<f32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

    // CHECK:  [[SHAPE_1:%.*]] = "tf.Shape"([[INPUT]]) : (tensor<3x10xf32>) -> tensor<?xi32>
    // CHECK:  [[RESULT:%.*]] = "tf.If"([[DIFF_RES]], [[INPUT]], [[SHAPE_1]], [[SIZE_DIFF]], [[SIZE]]) <{else_branch = @cond_false, is_stateless = true, then_branch = @cond_true}> : (tensor<i1>, tensor<3x10xf32>, tensor<?xi32>, tensor<i32>, tensor<i32>) -> tensor<?x10xf32>
    // CHECK:  return [[RESULT]] : tensor<?x10xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        // Constructs `else_branch`, which is executed when `if_cond` evaluates to
        // false.
        auto else_branch_op =
            rewriter.create<func::FuncOp>(loc, "cond_false", func_type);
        CreateCondFalseBranch(loc, shape_dtype, result_type, else_branch_op,
                              &rewriter);
        else_branch_op.setVisibility(func::FuncOp::Visibility::Private);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  7. src/net/http/fs.go

    			return condTrue
    		} else {
    			return condFalse
    		}
    	}
    	// The If-Range value is typically the ETag value, but it may also be
    	// the modtime date. See golang.org/issue/8367.
    	if modtime.IsZero() {
    		return condFalse
    	}
    	t, err := ParseTime(ir)
    	if err != nil {
    		return condFalse
    	}
    	if t.Unix() == modtime.Unix() {
    		return condTrue
    	}
    	return condFalse
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

          return node_def.op == 'PartitionedCall' and node_def.attr[
              'f'
          ].func.name.startswith('quantized_')
    
        for func in output_graphdef.library.function:
          if func.signature.name.startswith('cond_false'):
            self.assertTrue(
                any(map(_is_quantized_function_call_node, func.node_def))
            )
          elif func.signature.name.startswith('cond_true'):
            self.assertFalse(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

            !cond_type.getElementType().isInteger(/*width=*/1))
          return failure();
    
        // Identify the branch to inline.
        bool cond_value = (*cond.value_begin<APInt>()).getSExtValue();
        func::FuncOp func = cond_value ? then_func : else_func;
    
        // Make sure that the function has exactly one block to simplify inlining.
        // TFLite doesn't use control flow with blocks so functions with more than
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

                             TF::TPUCompilationResultOp& compilation_op,
                             Value& cond_value, Callers& callers,
                             const std::vector<Value>& loop_operands_nm0,
                             TF::StatefulPartitionedCallOp& caller) {
      const std::string name = "start_step_0";
    
      AddAssertion(builder, loc, cond_value,
                   "[StartStep0] Auto-pipelining requires at least two steps.");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
Back to top