This change ensures that syntax errors in ApiDef textprotos (e.g. mistyping a field name, which I did) fail the overall API generation rule instead of having parsing fail silently and produce an empty result for that single file.
PiperOrigin-RevId: 228961785
This is an incremental change to first introduce updates to the TypeScript internal library and references to building OpDef attribute structs that the TensorFlow.js Node runtime uses. For now, this change introduces basic "type" and "int" attr types. I'll continue to roll more types and complicated examples in upcoming changes.
PiperOrigin-RevId: 210121141
This initial change provides the very basics to start generating TypeScript. Non-deprecated and visible Ops are exported as a typescript function using internal functionality that is used the @tensorflow/tfjs-node repo (https://github.com/tensorflow/tfjs-node).
Future changes will introduce more code generation + tests. This initial change will help set the foundation for those upcoming changes.
PiperOrigin-RevId: 209528126