compute gradient required