Skip to content

Move TFMOT Library Code Off Private APIs #305

Open
@alanchiao

Description

@alanchiao

TFMOT currently has dependencies on TF and tf.keras private APIs. This is a focused effort to completely move off of them. We don't want TFMOT releases to stop working with newer TF releases.

Most recently, tfmot.sparsity.keras.PruningSummaries has stopped working with tf-nightly because of a dependence on a private _log_metrics API. If we can move this to use the previously available tf.summary public API, then our next release will work with all > 1.14.0 releases.

If we don't address this now, it'll eventually start to slow down releases as we may want to delay them to ensure all the techniques work with the next TF release(s).

For pruning and quantization, I've previously removed all (or nearly all) private APIs we use that we know how to fix without guidance from TF / tf.keras. Below, I'll put together a list of the ones that remain in order of priority and tackle them one-by-one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    technique:allApplicable to all techniques and TFMOT collectively.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions