Fix a race condition in XlaLocalLaunchBase.
XlaLocalLaunchBase was modifying platform_id_ without a lock which is racy because the same OpKernel can be execute concurrently. Fix this by inferring platform_id_ in the kernel constructor. While at it, make use_multiple_streams_ and xla_device_metadata_ member variables also. PiperOrigin-RevId: 210751494
Loading
Please sign in to comment