Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for 1xi8 (0.06 sec)

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

    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library.mlir

        %i8 = "tf.Cast"(%round) : (tensor<*xf32>) -> tensor<*xi8>
        func.return %i8 : tensor<*xi8>
      }
    
      func.func @dequantize_i8(%input : tensor<*xi8>, %scale : tensor<*xf32>, %zp : tensor<*xi32>) -> tensor<*xf32> {
        // Use identity op to avoid the weight being constant-folded.
        %identity = "tf.Identity"(%input) : (tensor<*xi8>) -> tensor<*xi8>
        %input_i32 = "tf.Cast"(%identity) : (tensor<*xi8>) -> tensor<*xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 01:16:10 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize.mlir

    // CHECK: %[[maxpool_i8:.*]] = "tf.MaxPool"(%[[sc1]])
    // CHECK-SAME: (tensor<*xi8>) -> tensor<*xi8>
    // CHECK: %[[reshape_i8:.*]] = "tf.Reshape"(%[[maxpool_i8]]
    // CHECK-SAME: (tensor<*xi8>, tensor<2xi32>) -> tensor<*xi8>
    // CHECK: %[[sc2:.*]] = "quantfork.scast"(%[[reshape_i8]])
    // CHECK: %[[dq:.*]] = "quantfork.dcast"(%[[sc2]]) : (tensor<*x!quant.uniform<i8:f32, 5.000000e-02:-10>>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:32:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_xla.mlir

      func.return %11 : tensor<*xf32>
    }
    
    // CHECK: %[[maxpool_i8:.*]] = "tf.MaxPool"
    // CHECK-SAME: (tensor<*xi8>) -> tensor<*xi8>
    // CHECK: %[[reshape_i8:.*]] = "tf.Reshape"(%[[maxpool_i8]]
    // CHECK-SAME: (tensor<*xi8>, tensor<2xi32>) -> tensor<*xi8>
    // CHECK: %[[scast:.*]] = "quantfork.scast"(%[[reshape_i8]]
    // CHECK: %[[matmul:.*]] = "tf.PartitionedCall"(%[[scast]]
    // CHECK-SAME: f = @composite_matmul_fn_1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:32:28 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      // Argument has rank 2, but its dimensions are unknown.
      constexpr absl::string_view kArgumentWithUnknownDims = R"mlir(
        func.func @unknown_dims_arg(%arg: tensor<?x?xi8>) -> tensor<?x?xi8> {
          return %arg : tensor<?x?xi8>
        }
      )mlir";
    
      OwningOpRef<ModuleOp> module_op =
          ParseModuleOpString(kArgumentWithUnknownDims);
      ASSERT_TRUE(module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_device_ops.mlir

      %7 = "tf.opH"() : () -> tensor<*xf32>
      %8 = "tf.opI"() : () -> tensor<*xf32>
      %9 = "tf.opJ"() : () -> tensor<*xi8>
      %10 = "tf.opK"() : () -> tensor<*xi16>
      %11 = "tf.opL"() : () -> tensor<*xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.td

    // operate on quantized values.
    //
    // Examples from storage to quantized type:
    //   i8 -> !quant<"uniform[i8:f32]{1.0}">
    //   tensor<4xi8> -> tensor<4x!quant<"uniform[i8:f32]{1.0}">>
    //   vector<4xi8> -> vector<4x!quant<"uniform[i8:f32]{1.0}">>
    def Quantization_StorageCastOp : Quantization_Op<"scast", [Pure]> {
      let arguments = (ins quant_RealOrStorageValueType:$arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 03:10:59 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    // test stablehlo roundtrip
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    func.func @logistic(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/optimize.mlir

      %f0 = "tfl.logical_and"(%arg0, %cst_false0): (tensor<1xi1>, tensor<1xi1>) -> tensor<1xi1>        // match
      %f1 = "tfl.logical_and"(%arg0, %cst_false1): (tensor<1xi1>, tensor<2x3xi1>) -> tensor<2x3xi1>    // match
      %f2 = "tfl.logical_and"(%arg1, %cst_false0): (tensor<2x3xi1>, tensor<1xi1>) -> tensor<2x3xi1>    // no match
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 284.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

    }
    
    TEST_F(ConvertTfQuantToMhloIntTest, UniformRequantizeToValidGraph) {
      constexpr absl::string_view kProgram = R"mlir(
    func.func @main(%input: tensor<10xi8>) -> tensor<10xi8> {
      %input_scale = "tf.Const"() { value = dense<0.2235> : tensor<f32> } : () -> tensor<f32>
      %input_zp = "tf.Const"() { value = dense<-2> : tensor<i32> } : () -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
Back to top