From commits-return-73559-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Fri Feb 1 19:04:54 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 67C37180627 for ; Fri, 1 Feb 2019 20:04:54 +0100 (CET) Received: (qmail 44307 invoked by uid 500); 1 Feb 2019 19:04:53 -0000 Mailing-List: contact commits-help@mxnet.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mxnet.incubator.apache.org Delivered-To: mailing list commits@mxnet.incubator.apache.org Received: (qmail 44298 invoked by uid 99); 1 Feb 2019 19:04:53 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2019 19:04:53 +0000 From: GitBox To: commits@mxnet.apache.org Subject: [GitHub] szha commented on issue #14017: Loading parameters from pretrained gluon model Message-ID: <154904789292.8113.15351814339842811224.gitbox@gitbox.apache.org> Date: Fri, 01 Feb 2019 19:04:52 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit szha commented on issue #14017: Loading parameters from pretrained gluon model URL: https://github.com/apache/incubator-mxnet/issues/14017#issuecomment-459832236 An easier way is to load all parameters and force randomly reinitialize the layers you want to train. For example: ``` model.load_parameters(...) model.classifier.initialize('uniform', force_reinit=True) ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services