for params in net.parameters():
        params.require_grad = False
      Python language logo
      your recipe card header background

      Freeze Layers

      0

      0

      avatar
      lucycodes42
      Pytorch Public Recipes

      Library: pytorch

      Shortcut: pytorch.freeze

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.