mirror of
https://github.com/wassname/keras-js.git
synced 2026-09-09 11:25:25 +08:00
update encoder.py
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ class Encoder(object):
|
||||
bytearr = weight_value.astype(np.float32).tobytes()
|
||||
self.weights += bytearr
|
||||
meta['offset'] = offset
|
||||
meta['length'] = len(bytearr) / 4
|
||||
meta['length'] = len(bytearr) // 4
|
||||
meta['shape'] = list(weight_value.shape)
|
||||
meta['type'] = 'float32'
|
||||
self.metadata.append(meta)
|
||||
|
||||
Reference in New Issue
Block a user