Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 147 for CST (0.02 sec)

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

    func.func @main() -> tensor<2x2xf32> {
      // CHECK: %[[cst:.*]] = "tfl.pseudo_const"() <{value = dense<2> : tensor<2xi32>}> : () -> tensor<2xi32>
      // CHECK: %{{.*}} = "tfl.reshape"(%{{.*}}, %[[cst]]) : (tensor<4xf32>, tensor<2xi32>) -> tensor<2x2xf32>
      %cst = arith.constant dense<[2, 2]> : tensor<2xi32>
      %0 = "tfl.pseudo_const" () {value = dense<1.0> : tensor<4xf32>} : () -> tensor<4xf32> loc("Const")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 730 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/tests/import_quant_stats.mlir

    
    // CHECK-LABEL: import_stats_skip
    func.func @import_stats_skip(%arg0: tensor<4xf32>, %cst: tensor<i32>) -> (tensor<2xf32>,tensor<2xf32>) {
      %0:2 = "tfl.split"(%cst, %arg0) {num_splits = 2 : i32} : (tensor<i32>, tensor<4xf32>) -> (tensor<2xf32>, tensor<2xf32>)
        loc(fused["skip1", "skip2.cc":10:8, callsite("op" at "skip3.cc":10:8)])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 06:25:50 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.td

       (IsIntSplatValueEqual<"int32_t", "-128"> $min_value),
       (IsIntSplatValueEqual<"int32_t", "127"> $max_value)]>;
    
    // This pattern optimizes:
    //   (x + cst1) + cst2 -> x + cst
    //   (x - cst1) - cst2 -> x - cst
    // Where: cst = cst1 + cst2
    foreach BinaryOp = [TF_AddV2Op, TF_SubOp] in {
      def OptimizeConsecutive#BinaryOp : Pat<
        (BinaryOp
          (BinaryOp $x, (TF_ConstOp:$cst1 $cst1_value)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size_test.cc

      EXPECT_TRUE(const_op);
    
      return const_op;
    }
    
    TEST_F(GetSizeInBytesTest, Int32ScalarConstOpSizeInBytes) {
      constexpr absl::string_view kConstOpExpr =
          R"mlir(%cst = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>)mlir";
    
      Block block{};
      TF::ConstOp int_tensor_const_op = ParseConstOp(kConstOpExpr, block, ctx_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/strip_noinline.mlir

    // CHECK-LABEL: func @strip_simple(
    // CHECK-NOT: tf._noinline
    func.func @strip_simple() -> tensor<2xi32> attributes {tf._noinline = true} {
      // CHECK-NEXT: %[[CST:.*]] = "tf.Const"
      %cst = "tf.Const"() { value = dense<2> : tensor<2xi32> } : () -> tensor<2xi32>
      func.return %cst : tensor<2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 364 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/optimize_no_verify.mlir

      %1 = "tfl.add"(%0, %cst) {fused_activation_function = "NONE"} : (tensor<256x8x7x16xf16>, tensor<f16>) -> tensor<256x8x7x16xf16>
      func.return %1 : tensor<256x8x7x16xf16>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/optimize_functional_ops.mlir

      %cst = arith.constant dense<false> : tensor<i1>
      func.return %cst : tensor<i1>
    }
    
    func.func private @_functionalize_if_then_branch_00(%arg0: tensor<*xi1>, %arg1: tensor<*xf32>, %arg2: tensor<*xf32>) -> tensor<i1>  {
      %cst = arith.constant dense<true> : tensor<i1>
      func.return %cst : tensor<i1>
    }
    // CHECK-NOT: tf.If
    // CHECK: return
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 10:34:48 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/prepare_quantize/prepare_quantize_int4.mlir

    func.func @dot_int4(%arg0: tensor<?x3xf32>) -> tensor<?x2xf32> {
      // CHECK: %[[cst:.*]] = stablehlo.constant
      // CHECK: %[[q1:.*]] = "quantfork.qcast"(%[[cst]])
      // CHECK-SAME: quant.uniform<i8:f32, 0.0040316890267764818:127>
      // CHECK: %[[dq1:.*]] = "quantfork.dcast"(%[[q1]])
      // CHECK-SAME: quant.uniform<i8:f32, 0.0040316890267764818:127>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 22:40:14 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/tests/mark_functions_noinline.mlir

    func.func @noinline0() -> (tensor<0xf32>) {
      %cst = "tf.Const"() {value = dense<1.0> : tensor<0xf32>} : () -> tensor<0xf32>
      return %cst : tensor<0xf32>
    }
    
    // -----
    
    // Tests that the function not listed in the option `noinline-functions`
    // is not marked tf._noinline = true.
    
    // CHECK-LABEL: @inline
    // CHECK-NOT: tf._noinline
    func.func @inline() -> (tensor<0xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 00:02:46 UTC 2023
    - 841 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/tests/lift_quantizable_spots_as_functions_xla_selective_quantization.mlir

      func.func @conv2d_unmatching_unit(%arg0: tensor<1x3x4x3xf32>) -> (tensor<1x3x2x2xf32>) {
        %cst = "tf.Const"() {device = "", value = dense<1.0> : tensor<2x3x3x2xf32>} : () -> tensor<2x3x3x2xf32>
        %0 = "tf.Cast"(%arg0) {Truncate = false, device = ""} : (tensor<1x3x4x3xf32>) -> tensor<1x3x4x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top