Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for 1xi8 (0.05 sec)

  1. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/svdf_v2.mlir

      %0 = "tfl.pseudo_const" () {value = dense<0.0> : tensor<4xf32>} : () -> tensor<4xf32> loc("Const")
      %1 = "tfl.svdf"(%arg0, %arg1, %arg2, %arg3, %0) {fused_activation_function = "RELU", rank = 2 : i32} : (tensor<4xf32>, tensor<4xi8>, tensor<4xf32>, tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32>
      func.return %1 : tensor<4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/lite/quantization/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 quantfork_StorageCastOp : quantfork_Op<"scast", [Pure]> {
      let arguments = (ins quant_RealOrStorageValueType:$arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 13 12:46:08 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

              )
          )
          module_str = self._extract_first_xla_call_module_op(
              self._output_saved_model_path
          )
          self.assertTrue(
              re.search('stablehlo.dot_general.*xi8>.*xi8>.*xi32>', module_str)
          )
    
        # Run quantization the first time, calibration is expected to be skipped.
        output_saved_model_path_2 = self.create_tempdir('output2').full_path
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.cc

      if (!quantDenseAttr) {
        return nullptr;
      }
    
      // Cast from an expressed-type-based type to storage-type-based type,
      // preserving the sparse shape (i.e. tensor<4xf32> -> tensor<4xi8>).
      ShapedType newSparseType = mlir::dyn_cast_or_null<ShapedType>(
          quantizedElementType.castExpressedToStorageType(
              realSparseAttr.getType()));
      if (!newSparseType) {
        return nullptr;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/shape-attrs.pbtxt

    # CHECK-DAG: tf.InfeedDequeueTuple{{.+}}-> (tensor<?x?x?xui16>, tensor<*xui32>, tensor<7x56xui64>)
    # CHECK-DAG: tf.InfeedDequeue{{.+}}-> tensor<?x8x?xi8>
    # CHECK-DAG: tf.InfeedDequeue{{.+}}-> tensor<8x64xui8>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 04 18:02:53 UTC 2020
    - 5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-prefer-tf2xla.mlir

    // CHECK-LABEL: fused_conv2d
    func.func @fused_conv2d(%input: tensor<1x300x300x40xi8>,
                            %filter: tensor<3x3x40x40xi8>,
                            %bias: tensor<40xf32>,
                            %act: tensor<0xi8>) -> tensor<1x300x300x40xi8> {
    
      // CHECK:       %[[v0:.*]] = mhlo.constant dense<1.000000e+00> : tensor<f32>
      // CHECK-NEXT:  %[[v1:.*]] = mhlo.constant dense<2.000000e+00> : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top