add fw.compute, fix attr