Question about tensorflow's allow_soft_placement equivalent flag

Are there any flag which is equivalent to the tensorflow’s allow_soft_placement?