Fix bug DNN-3781: remove the code of Context setting.