Fixed some syntax errors but still can't get mnist to compile.