replaces guess_arg_shape_if_requested with infer_arg_shapes and adds infer_shape option to make_kernel