added cpu check for top-left corner based loss conditions.