You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def serialize(self, name, f):
param = self.get(name)
size = reduce(lambda a, b: a * b, param.shape)
f.write(struct.pack("IIQ", 0, 4, size))
Thus, we can't use version to distinguish different parameters: such as mkldnn parameters and paddle parameters. So, we should add the parameter header in V2 api too.
In v1 api, there is parameter header in paddle/parameter/Parameter.h
While in v2 api, it directly writes
f.write(struct.pack("IIQ", 0, 4, size))
in python/paddle/v2/parameters.py#L282:Thus, we can't use
version
to distinguish different parameters: such as mkldnn parameters and paddle parameters. So, we should add the parameter header in V2 api too.related with #3409
The text was updated successfully, but these errors were encountered: