Lutz Roeder 4 лет назад
Родитель
Сommit
00745bfbac
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      source/tflite-schema.js

+ 4 - 4
source/tflite-schema.js

@@ -2530,8 +2530,8 @@ $root.tflite.SignatureDef = class SignatureDef {
         const $ = new $root.tflite.SignatureDef();
         $.inputs = reader.tableArray(position, 4, $root.tflite.TensorMap.decode);
         $.outputs = reader.tableArray(position, 6, $root.tflite.TensorMap.decode);
-        $.method_name = reader.string_(position, 8, null);
-        $.key = reader.string_(position, 10, null);
+        $.signature_key = reader.string_(position, 8, null);
+        $.deprecated_tag = reader.string_(position, 10, null);
         $.subgraph_index = reader.uint32_(position, 12, 0);
         return $;
     }
@@ -2540,8 +2540,8 @@ $root.tflite.SignatureDef = class SignatureDef {
         const $ = new $root.tflite.SignatureDef();
         $.inputs = reader.objectArray(json.inputs, $root.tflite.TensorMap.decodeText);
         $.outputs = reader.objectArray(json.outputs, $root.tflite.TensorMap.decodeText);
-        $.method_name = reader.value(json.method_name, null);
-        $.key = reader.value(json.key, null);
+        $.signature_key = reader.value(json.signature_key, null);
+        $.deprecated_tag = reader.value(json.deprecated_tag, null);
         $.subgraph_index = reader.value(json.subgraph_index, 0);
         return $;
     }