From commits-return-73560-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Fri Feb 1 19:05:07 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 48B7518067E for ; Fri, 1 Feb 2019 20:05:07 +0100 (CET) Received: (qmail 44753 invoked by uid 500); 1 Feb 2019 19:05:06 -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 44738 invoked by uid 99); 1 Feb 2019 19:05:06 -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:05:06 +0000 From: GitBox To: commits@mxnet.apache.org Subject: [GitHub] szha edited a comment on issue #14017: Loading parameters from pretrained gluon model Message-ID: <154904790586.9174.10317307672286863827.gitbox@gitbox.apache.org> Date: Fri, 01 Feb 2019 19:05:05 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit szha edited a comment 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: ```python 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