Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong committed Jun 7, 2018
1 parent b66b443 commit 22e17a5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/mxnet/gluon/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ def save_params(self, filename):
filename : str
Path to file.
"""
import pdb;pdb.set_trace()
warnings.warn("save_params is deprecated. Please use save_parameters.")
self.collect_params().save(filename, strip_prefix=self.prefix)

Expand Down Expand Up @@ -386,9 +385,7 @@ def load_params(self, filename, ctx=None, allow_missing=False,
present in this Block.
"""
warnings.warn("load_params is deprecated. Please use load_parameters.")
import pdb;pdb.set_trace()
self.collect_params().load(filename, ctx, allow_missing, ignore_extra,
self.prefix)
self.load_parameters(filename, ctx, allow_missing, ignore_extra)

def register_child(self, block, name=None):
"""Registers block as a child of self. :py:class:`Block` s assigned to self as
Expand Down

0 comments on commit 22e17a5

Please sign in to comment.