Browse Source

Update tf-proto.js

Lutz Roeder 1 tháng trước cách đây
mục cha
commit
a6d4a7c52a
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      source/tf-proto.js

+ 3 - 3
source/tf-proto.js

@@ -6215,9 +6215,9 @@ tensorflow.TensorSliceProto = class TensorSliceProto {
 
 tensorflow.TensorSliceProto.Extent = class Extent {
 
-    get has_length() {
-        tensorflow.TensorSliceProto.Extent.has_lengthSet = tensorflow.TensorSliceProto.Extent.has_lengthSet || new Set(["length"]);
-        return Object.keys(this).find((key) => tensorflow.TensorSliceProto.Extent.has_lengthSet.has(key) && this[key] !== null);
+    get has_length_hack() {
+        tensorflow.TensorSliceProto.Extent.has_length_hackSet = tensorflow.TensorSliceProto.Extent.has_length_hackSet || new Set(["length"]);
+        return Object.keys(this).find((key) => tensorflow.TensorSliceProto.Extent.has_length_hackSet.has(key) && this[key] !== null);
     }
 
     static decode(reader, length) {