Skip to content

Commit

Permalink
Update tflite-schema.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Sep 9, 2023
1 parent 31c2065 commit fcc2ec8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion source/tflite-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ $root.tflite.BuiltinOperator = {
STABLEHLO_SORT: 199,
STABLEHLO_WHILE: 200,
STABLEHLO_GATHER: 201,
STABLEHLO_TRANSPOSE: 202
STABLEHLO_TRANSPOSE: 202,
DILATE: 203
};

$root.tflite.BuiltinOptions = class {
Expand Down Expand Up @@ -737,6 +738,7 @@ $root.tflite.BuiltinOptions2 = class {
case 15: return $root.tflite.StablehloWhileOptions.decode(reader, position);
case 16: return $root.tflite.StablehloGatherOptions.decode(reader, position);
case 17: return $root.tflite.StablehloTransposeOptions.decode(reader, position);
case 18: return $root.tflite.DilateOptions.decode(reader, position);
default: return undefined;
}
}
Expand All @@ -760,6 +762,7 @@ $root.tflite.BuiltinOptions2 = class {
case 'StablehloWhileOptions': return $root.tflite.StablehloWhileOptions.decodeText(reader, json);
case 'StablehloGatherOptions': return $root.tflite.StablehloGatherOptions.decodeText(reader, json);
case 'StablehloTransposeOptions': return $root.tflite.StablehloTransposeOptions.decodeText(reader, json);
case 'DilateOptions': return $root.tflite.DilateOptions.decodeText(reader, json);
default: return undefined;
}
}
Expand Down Expand Up @@ -3116,6 +3119,19 @@ $root.tflite.RightShiftOptions = class RightShiftOptions {
}
};

$root.tflite.DilateOptions = class DilateOptions {

static decode(/* reader, position */) {
const $ = new $root.tflite.DilateOptions();
return $;
}

static decodeText(/* reader, json */) {
const $ = new $root.tflite.DilateOptions();
return $;
}
};

$root.tflite.OperatorCode = class OperatorCode {

static decode(reader, position) {
Expand Down

0 comments on commit fcc2ec8

Please sign in to comment.