import torch


def get_optimizer(parameters, lr, weight_decay):
	"""
		Initiate Adam optimizer with fixed parameters

	Args:
		parameters: filter, parameters to optimize
		lr: float, initial learning rate
		weight_decay: float, between 0.0 and 1.0

	Return:
		a torch.optim.Adam optimizer
	"""
	return torch.optim.Adam(parameters, lr=lr, weight_decay=weight_decay)