This is an archive of the discontinued LLVM Phabricator instance.

[mlgo] Factor out TensorSpec
ClosedPublic

Authored by mtrofin on Apr 25 2022, 1:53 PM.

Details

Summary

This is a simple datatype with a few JSON utilities, and is independent
of the underlying executor. The main motivation is to allow taking a
dependency on it on the AOT side, and allow us build a correctly-sized
buffer in the cases when the requested feature isn't supported by the
model. This, in turn, allows us to grow the feature set supported by the
compiler in a backward-compatible way; and also collect traces exposing
the new features, but starting off the older model, and continue
training from those new traces.

Diff Detail

Event Timeline

mtrofin created this revision.Apr 25 2022, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2022, 1:53 PM
mtrofin requested review of this revision.Apr 25 2022, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2022, 1:53 PM
mtrofin updated this revision to Diff 425022.Apr 25 2022, 1:55 PM

forgot to remove some defs

yundiqian accepted this revision.Apr 25 2022, 2:27 PM
This revision is now accepted and ready to land.Apr 25 2022, 2:27 PM
This revision was landed with ongoing or failed builds.Apr 25 2022, 6:45 PM
This revision was automatically updated to reflect the committed changes.