no problem, just remove the double slash at the start of this line;
// add_filter('autoptimize_css_include_inline','my_ao_css_include_inline',10,1);
Otherwise PHP considers the entire line as being comment and not code and the filter is not added really.
frank