tfjs
tfjs copied to clipboard
Remove fromPixelsAsync
WebGPU no longer relies on async createImageBitmap for fromPixels, so the async version is no longer needed.
To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.
@qjia7 @shaoboyan PTAL
fromPixelsAsync is technically part of the public API, so we should deprecate it instead of deleting it. I don't think anyone else is using it, but it's probably better to save this for the 4.0 major release. I'll follow up with instructions on how to include this in 4.0. Please leave the PR open until I do that.
@mattsoulanille thanks!
@mattsoulanille Can we add this into next major release (5.0)?
Yes. We'll have a longer merge process for 5.0 than we had for 4.0, and we'll accept breaking changes from contributors. This PR should go in 5.0, which we plan to release some time in the next few months. 4.0 was merged with only the TypeScript upgrade because it needed to be merged quickly to resolve some internal issues.