fixed compilation error for inner_ext when used with --enable-gentensor