Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal. #670

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions init2winit/hyperparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def build_hparams(model_name,
merged_dict['label_smoothing'] *= num_classes / float(num_classes - 1)

merged = config_dict.ConfigDict(merged_dict)
merged['eval_use_ema'] = 'False'
merged.lock()

# Subconfig "opt_hparams" and "lr_hparams" are allowed to add new fields.
Expand Down
2 changes: 2 additions & 0 deletions init2winit/optimizer_lib/optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

"""Getter function for selecting optimizers."""

import functools
from absl import logging
import flax
from init2winit.model_lib.model_utils import ParameterType # pylint: disable=g-importing-member
Expand All @@ -27,6 +28,7 @@
from init2winit.optimizer_lib import utils
from init2winit.optimizer_lib.hessian_free import CGIterationTrackingMethod
from init2winit.optimizer_lib.hessian_free import hessian_free
from init2winit.optimizer_lib.kitchen_sink._src.transform import compute_params_ema_for_eval
import jax
import optax

Expand Down