Commit Graph

6 Commits

Author SHA1 Message Date
Gaurav Jain
4213d5c1bd Use absl instead of deprecated str_util
PiperOrigin-RevId: 249248716
2019-05-21 08:10:10 -07:00
Nick Felt
5704143a67 Check syntax when parsing ApiDef textprotos
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
2019-01-11 16:12:05 -08:00
Peter Hawkins
3f23f4ddea Automated rollback of commit 6fa6bd045c
PiperOrigin-RevId: 217173355
2018-10-15 11:22:32 -07:00
Peter Hawkins
6fa6bd045c Replace references to tensorflow::StringPiece with absl::string_view. No functional changes.
PiperOrigin-RevId: 217170781
2018-10-15 11:01:32 -07:00
Nick Kreeger
90030cc1ef Generate TypeScript Op attribute values for "type" and "int" OpDef attribute types.
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
2018-08-24 10:49:14 -07:00
Nick Kreeger
49115abfd3 Introduce basic CC library for generating TypeScript files for TensorFlow.js from registered Ops.
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
2018-08-20 19:46:03 -07:00