- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 286 for TfLite (0.4 sec)
-
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/custom_op_offset.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer --use-buffer-offset %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s func.func @main(%arg0: tensor<32x4x4x128xf32>, %arg1: tensor<1x32x42x128xf32>, %arg2: tensor<4xi32>) -> tensor<1x64x84x32xf32> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 847 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/reshape.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s // Confirm we can extract type info from reshape 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>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 730 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/input_output_names_attr.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s // Tests input and output names from FlatBuffer are added to `tf.entry_function` attribute. // CHECK-LABEL: @main func.func @main(%arg0: tensor<4xi8>, %arg1: tensor<4xi32>) -> (tensor<4xi32>, tensor<4xi8>) // CHECK: attributes {tf.entry_function = {inputs = "input0,input1", outputs = "output0,output1"}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 24 07:35:24 UTC 2022 - 726 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/stablehlo_quantizer_odml_oss.ipynb
"# Below flag controls whether to use StableHLO Quantizer or TFLite quantizer.\n", "converter.experimental_use_stablehlo_quantizer = True\n", "\n", "quantized_model = converter.convert()\n", "\n", "with open('/tmp/resnet50_quantized.tflite', 'wb') as f:\n", " f.write(quantized_model)" ] }, { "cell_type": "code",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 12 03:40:43 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/tfl_quantizer.cc
namespace { TfLiteStatus QuantizeAnnotatedModel(llvm::StringRef buffer, std::string& output_buffer) { return mlir::lite::QuantizeModel( buffer, tflite::TensorType_INT8, tflite::TensorType_INT8, tflite::TensorType_INT8, {}, /*disable_per_channel=*/false, /*fully_quantize=*/true, output_buffer); } } // namespace } // namespace mlir int main(int argc, char** argv) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/optional.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s // Test to make sure optional parameters survive a roundtrip func.func @main(%arg0: tensor<40x37xf32>, %arg1: tensor<40x37xf32>) -> tensor<40x40xf32> { // CHECK: [[NONE:%.*]] = "tfl.no_value"() <{value}> : () -> none // CHECK: "tfl.fully_connected"(%arg0, %arg1, [[NONE]])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 834 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo_const.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer --emit-stablehlo-ops=true %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir --disable-vhlo-to-stablehlo=true - -o - | FileCheck %s // test stablehlo roundtrip module attributes {tfl.metadata = {"keep_stablehlo_constant" = "true"}} { func.func @main () -> tensor<1x1x1x96xf32> { %0 = "vhlo.constant_v1"() <{value = #vhlo.tensor_v1<dense<0.000000e+00> : tensor<f32>>}> : () -> tensor<1x1x1x96xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 14 19:15:40 UTC 2024 - 833 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/many_attribute_op.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s // Confirm a wide array of attribute survives the round-trip func.func @main(tensor<1x6x6x16xf32>) -> tensor<1x1x1x16xf32> { ^bb0(%arg0: tensor<1x6x6x16xf32>):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 824 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/unranked_tensor.mlir
// RUN: tf-opt --tfl-legalize-tf-while %s -o - | flatbuffer_translate -mlir-to-tflite-flatbuffer - -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s // CHECK-LABEL: main func.func @main(%arg0: tensor<*xf32>) -> tensor<*xf32> { // CHECK: %{{.*}} = tfl.add %{{.*}}, %{{.*}} {fused_activation_function = "NONE"} : tensor<*xf32> // CHECK: return %{{.*}} : tensor<*xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 14 16:41:28 UTC 2022 - 554 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_variables.cc
// arguments to functions, to TFLite variables. class LegalizeVariablesPass : public impl::LegalizeVariablesPassBase<LegalizeVariablesPass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LegalizeVariablesPass) void runOnOperation() override { auto module = getOperation(); // If TFLite variable legalization is not allowed, then we skip this pass.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0)