Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,398 for TensorT (0.15 sec)

  1. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

          }
        }
    
        // Special type fixes for scalar tensor types.
        // TFLite flatbuffer schema doesn't distinguish scalar tensor shapes
        // and unranked tensor shapes (i.e. they are both represented as an empty
        // INT32 list), see b/138865275. MLIR importer conservatively treats them as
        // unranked tensor types. Here we set them to scalar tensor types when it is
        // safe.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

      }
      return %graph#0, %graph#1, %graph#2, %graph#3 : !tf_res, !tf_res, tensor<f32>, tensor<f32>
    }
    ```
    
    After:
    
    ```mlir
    func @while_body(%arg0: !tf_res, %arg1: !tf_res, %arg2: tensor<f32>, %arg3: tensor<f32>, %chain_0: tensor<i32>, %chain_1: tensor<i32>) -> (!tf_res, !tf_res, tensor<f32>, tensor<f32>, tensor<i32>, tensor<i32>) {
      %graph:6 = tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_per_channel.pbtxt

    }
    
    # MLIR-LABEL: func @main
    # MLIR-SAME:  (%[[ARG_0:[a-z0-9]+]]: tensor<1x1x1x256x!quant.uniform<i8:f32, 0.21632751372549019:27>>) -> tensor<1x6x31x!quant.uniform<i8:f32, 0.09363494573854933:22>>
    # MLIR-SAME:  control_outputs = ""
    # MLIR-SAME:  inputs = "input"
    # MLIR-SAME:  outputs = "output"
    # MLIR:         %[[shape:.*]] = arith.constant dense<[1, -1, 31]> : tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h

    // quantized types.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateComposeUniformQuantizedTypePass();
    
    // Creates a pass that finds stablehlo ops that accept or produce uniform
    // quantized typed tensors and converts them to equivalent ops in the TFLite
    // dialect.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateUniformQuantizedStableHloToTflPass();
    
    // Create a pass that commute transposes through specific ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TFE_DeleteContextOptions(opts);
    
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      /* Want to test simple MatMul example with abstract tensors:
        [[1,2],   *  [[5,6],   =   [[19,22],
         [3,4]]       [7,8]]        [43,50]]
      */
    
      // Build 1st Matrix.
      int64_t dims[] = {2, 2};  // Matrices will be 2 x 2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 39.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/end2end/add.pbtxt

    versions {
      producer: 27
    }
    
    # CHECK:      {
    # CHECK-NEXT:   version: 3,
    # CHECK-NEXT:   operator_codes: [ {
    # CHECK-NEXT:     version: 1
    # CHECK-NEXT:   } ],
    # CHECK-NEXT:   subgraphs: [ {
    # CHECK-NEXT:     tensors: [ {
    # CHECK-NEXT:       shape: [ 4 ],
    # CHECK-NEXT:       type: INT32,
    # CHECK-NEXT:       buffer: 1,
    # CHECK-NEXT:       name: "input0",
    # CHECK-NEXT:       quantization: {
    # CHECK-EMPTY:
    # CHECK-NEXT:       },
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_translate.cc

    static opt<std::string> input_arrays_flag(
        "input-arrays",
        llvm::cl::desc(
            "List of input tensors, if different from the default inputs"),
        llvm::cl::init(""));
    
    // NOLINTNEXTLINE
    static opt<std::string> output_arrays_flag(
        "output-arrays",
        llvm::cl::desc(
            "List of output tensors, if different from the default outputs"),
        llvm::cl::init(""));
    
    using llvm::cl::opt;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/loader.cc

      return absl::OkStatus();
    }
    
    Tensor CreateStringTensor(const string& value) {
      Tensor tensor(DT_STRING, TensorShape({}));
      tensor.scalar<tstring>()() = value;
      return tensor;
    }
    
    void AddAssetsTensorsToInputs(const StringPiece export_dir,
                                  const std::vector<AssetFileDef>& asset_file_defs,
                                  std::vector<std::pair<string, Tensor>>* inputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tf_tfl_translate_cl.cc

                                      llvm::cl::init("-"));
    // NOLINTNEXTLINE
    opt<bool> use_splatted_constant(
        "use-splatted-constant",
        llvm::cl::desc(
            "Replace constants with randomly generated splatted tensors"),
        llvm::cl::init(false), llvm::cl::Hidden);
    // NOLINTNEXTLINE
    opt<bool> input_mlir(
        "input-mlir",
        llvm::cl::desc("Take input TensorFlow model in textual MLIR instead of "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

        return {0, 2, 3, 1};
      } else {
        return {};
      }
    }
    
    // Shuffle elements in the `attr` according to the permutation. Optional
    // `inner_size` allows to shuffle array attributes created from rank 2 tensors
    // on outer dimension only.
    ArrayAttr ShuffleArrayAttr(ArrayAttr attr, ArrayRef<int64_t> permutation,
                               int inner_size) {
      if (attr.empty()) return attr;
    
      assert(attr.size() % inner_size == 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top