From 14b67a93a60e8c936f41e83ba92e7111b75d4638 Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Thu, 5 Sep 2024 18:00:56 -0700 Subject: [PATCH] Update tflite-schema.js --- source/tflite-schema.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/source/tflite-schema.js b/source/tflite-schema.js index 9f9c546d20..0bc9a9f67a 100644 --- a/source/tflite-schema.js +++ b/source/tflite-schema.js @@ -450,7 +450,8 @@ tflite.BuiltinOperator = { DILATE: 203, STABLEHLO_RNG_BIT_GENERATOR: 204, REDUCE_WINDOW: 205, - STABLEHLO_COMPOSITE: 206 + STABLEHLO_COMPOSITE: 206, + STABLEHLO_SHIFT_LEFT: 207 }; tflite.BuiltinOptions = class { @@ -745,6 +746,7 @@ tflite.BuiltinOptions2 = class { case 19: return tflite.StablehloRngBitGeneratorOptions.decode(reader, position); case 20: return tflite.ReduceWindowOptions.decode(reader, position); case 21: return tflite.StableHLOCompositeOptions.decode(reader, position); + case 22: return tflite.StablehloShiftLeftOptions.decode(reader, position); default: return undefined; } } @@ -772,6 +774,7 @@ tflite.BuiltinOptions2 = class { case 'StablehloRngBitGeneratorOptions': return tflite.StablehloRngBitGeneratorOptions.decodeText(reader, json); case 'ReduceWindowOptions': return tflite.ReduceWindowOptions.decodeText(reader, json); case 'StableHLOCompositeOptions': return tflite.StableHLOCompositeOptions.decodeText(reader, json); + case 'StablehloShiftLeftOptions': return tflite.StablehloShiftLeftOptions.decodeText(reader, json); default: return undefined; } } @@ -3241,6 +3244,19 @@ tflite.StableHLOCompositeOptions = class StableHLOCompositeOptions { } }; +tflite.StablehloShiftLeftOptions = class StablehloShiftLeftOptions { + + static decode(/* reader, position */) { + const $ = new tflite.StablehloShiftLeftOptions(); + return $; + } + + static decodeText(/* reader, json */) { + const $ = new tflite.StablehloShiftLeftOptions(); + return $; + } +}; + tflite.Operator = class Operator { static decode(reader, position) {