test=release/1.2
* "avoid copy back to cpu" * "add infinity support" * "fix ci" * "add cpu macro" * rerun ci; test=develop * "fix api" test=develop * test=develop * test=develop * test=develop * test=develop * test=develop