Commit Graph

56 Commits

Author SHA1 Message Date
Mark Daoust
992acfbbac Add source file links to objects imported from keras-preprocessing.
PiperOrigin-RevId: 340732811
Change-Id: If0f9eb3de85637e2cdffc7552de7cc1dadd067a8
2020-11-04 14:59:36 -08:00
Yash Katariya
d3095a15b6 The Optimizer base class sections were replicated in the child classes.
Fix that by adding do_not_doc_in_subclasses on all the attributes.

PiperOrigin-RevId: 338525045
Change-Id: Ied75b34307e8c7f8e5a8a7c35199d33a64fe20cf
2020-10-22 12:39:00 -07:00
Scott Zhu
ad125235fa Internal changes only.
PiperOrigin-RevId: 330611992
Change-Id: Iad24ce23401c34e9b239bfbe00aafa26f3003065
2020-09-08 16:45:41 -07:00
Yash Katariya
51c7baf0d3 Add Raises and Return lint for API symbols.
PiperOrigin-RevId: 328445571
Change-Id: I177d95b004d115b79bc0d2531b383b5191a309c9
2020-08-25 18:41:38 -07:00
Yash Katariya
d90d430afc Add hooks for --gen_report flag.
PiperOrigin-RevId: 326534079
Change-Id: I29a648e068f3ddc56dd76eb2744495e8bf381953
2020-08-13 15:20:15 -07:00
Mark Daoust
7a4b89dbaf Adding doc_controls.decorate_all_class_attributes to tensorflow_docs.
`_hide_layer_and_module` can be removed.

PiperOrigin-RevId: 324648586
Change-Id: I30559a92f02d69772fc2719cb69d36470b1f9fd7
2020-08-03 11:49:08 -07:00
Mark Daoust
ad53a1d3ba Re-remove bad __init__ links.
PiperOrigin-RevId: 319890885
Change-Id: I29eb3f601b6b86669115d30ddf47fc2467e8819b
2020-07-06 17:52:13 -07:00
Tomer Kaftan
7933b0e5e3 Export and add dispatch to overloaded tensor operators (that were not already exported under different api symbols) under the hidden namespace tf.__operators__.
This will make these built-in operators more amenable to dispatching for library developers.
This includes:
tf.__operators__.add
tf.__operators__.ne
tf.__operators__.eq
tf.__operators__.getitem

PiperOrigin-RevId: 315998480
Change-Id: Icf61e24a2c037eaf2c4d170967eb2b8ac18f5961
2020-06-11 16:20:41 -07:00
Yash Katariya
65125bf0d0 Change the limit to 2000 for 1.x api.
PiperOrigin-RevId: 307647773
Change-Id: I344cd2d5a5154018a86e5931756882f6b3802cdd
2020-04-21 11:41:44 -07:00
Yash Katariya
5f4b11001f Hide raw_ops from search. Also, fix the modules that start with _.
PiperOrigin-RevId: 299878075
Change-Id: I826732183506eb85536f30dca061da4a2cdcc673
2020-03-09 10:56:24 -07:00
Mark Daoust
10dfd32568 Fix raw-ops op-links.
PiperOrigin-RevId: 296929042
Change-Id: I5542492d0ead1b89fc21fe394d86a389161f07bb
2020-02-24 11:05:36 -08:00
Mark Daoust
5cedee2c76 Fix doc generator to handle new package layout.
tensorflow_core is gone in tf-nightly.

PiperOrigin-RevId: 296238681
Change-Id: I604be239c807b6e6fb9569560d9f94326b303711
2020-02-20 10:15:45 -08:00
Mark Daoust
e16e4b550a use the base tensorflow package.
PiperOrigin-RevId: 295031603
Change-Id: I8137a3c48f1db7bfa8e3505ff8e5c56e42a2a8e6
2020-02-13 16:54:41 -08:00
Mark Daoust
c390ffe4ad fix format string.
PiperOrigin-RevId: 294963706
Change-Id: I46c1038fdd89396d697b3704996ccd64ff8fe76b
2020-02-13 11:45:55 -08:00
Mark Daoust
8ee744053e typo set_custom_content not custom_content
PiperOrigin-RevId: 294932003
Change-Id: If058d2edbcf41d6d5b7793039138274582df1a72
2020-02-13 09:34:57 -08:00
Mark Daoust
f00437d811 Show raw ops pages, but hide them from search.
PiperOrigin-RevId: 294811206
Change-Id: Ia37cb4337e5370aa68832fe02596da87988ce684
2020-02-12 18:54:33 -08:00
Yash Katariya
c0c4c882fb Add support for keras_export and estimator_export.
PiperOrigin-RevId: 291371881
Change-Id: I7c68f77a13f9f08988b915f922711129f6871ace
2020-01-24 07:57:28 -08:00
Yash Katariya
ca0d5142f6 Add support for keras_export and estimator_export.
PiperOrigin-RevId: 291365778
Change-Id: Ie108f52a6def1ad78a2cd6e62b12268390f349a1
2020-01-24 07:08:48 -08:00
Yash Katariya
3df80ffb8b Add support for keras_export and estimator_export.
PiperOrigin-RevId: 291235881
Change-Id: I84d2dbbe66eeef0168cb2940610b3d29b9381525
2020-01-23 13:50:21 -08:00
Mark Daoust
4a561b44b9 Fix decorator handling in tensorflow api_generator.
The generator fails if you don't unwrap TFDecorators. Subproject functions decorated with `@tf.function` currently fail at `getfullargspec`, this is the way to unwrap them.

Also capture the tf_decorator names and add them to the docs.

Also removes the monkey-patching in generate2.py, this just does the unwraping automatically.

This adds 200 of missing decorators to the signature blocks of functions in tensorflow. But there are a lot of internal decorators, so I'm white-listing ones that I think are informative to users. There are no other changes to the output.

PiperOrigin-RevId: 291218898
Change-Id: I3c90e1953a24323e78f875df6df88e8af182bc13
2020-01-23 12:24:17 -08:00
Mark Daoust
b4822fff21 Add table of tf.raw_ops including a "Has Gradients" column.
PiperOrigin-RevId: 290808392
Change-Id: If39734348696ebcecee1166ff255e4e146ce4080
2020-01-21 13:30:50 -08:00
Mark Daoust
53e714fbcc flip tensorflow_docs/api_generator to python3-only
api_generator/tf_inspect was just python2/3 compatibility shim.

PiperOrigin-RevId: 290078265
Change-Id: Ib6257eca03c8054586374797b5c898fb15403358
2020-01-16 09:08:21 -08:00
Yash Katariya
ffc041a6be Don't import compat.v2
PiperOrigin-RevId: 288801231
Change-Id: I4e1d7a05dd9513e19d647853bf7e29bdb743f343
2020-01-08 16:45:41 -08:00
Yash Katariya
261c8b171e Add the redirects for tf_overview only if the package is tensorflow.
PiperOrigin-RevId: 288763195
Change-Id: I3c63d55db7fc40473bdd482f35f9d6e7293a4728
2020-01-08 13:33:25 -08:00
Yash Katariya
8ac21df38c Remove TF1 only stuff from generate2.py
PiperOrigin-RevId: 286656789
Change-Id: I1959fd8cbf368efc7c9647d0ca101704100ebd62
2019-12-20 16:15:12 -08:00
Mark Daoust
999ca764fd Squash aliases into a single line.
Remove "Defined in generated file" lines

PiperOrigin-RevId: 284579738
Change-Id: Iea4f72eb9c2a8923c85d003e6aeff3be4d468ecc
2019-12-09 10:15:58 -08:00
Billy Lamberta
18f700fa7e Docs: Updated links in docstrings for TF2
PiperOrigin-RevId: 272905147
2019-10-04 11:41:48 -07:00
Yash Katariya
6dcdbbf621 Update the generate2 doc injection.
PiperOrigin-RevId: 271395881
2019-09-26 14:03:23 -07:00
Yash Katariya
42ea90d299 Exclude python, core, compiler, examples, tools, compat.v2.v1 from the public api
PiperOrigin-RevId: 268335970
2019-09-10 16:47:09 -07:00
Mark Daoust
809eacb2a9 Hide duplicated compat modules from doc generator.
No more compat.v2.compat.v1

PiperOrigin-RevId: 265736906
2019-08-27 12:27:55 -07:00
Mark Daoust
9792a57047 Hide compat.v1.compat.v1 from doc generator.
PiperOrigin-RevId: 265693954
2019-08-27 09:17:25 -07:00
Yash Katariya
d1d240c628 Reverting back to the old regex since the change on github was wrong.
PiperOrigin-RevId: 265579267
2019-08-26 17:59:29 -07:00
Yash Katariya
ba3794f986 Since the packages in tensorflow moved to tensorflow_core, changing the copy.bara.sky rule to reflect that. Also removing compat.v2.compat.v1 aliases from api docs.
PiperOrigin-RevId: 265505224
2019-08-26 12:29:32 -07:00
Yash Katariya
3c45e855ec Exclude more stuff
PiperOrigin-RevId: 265165959
2019-08-23 17:10:46 -07:00
Yash Katariya
2fce6eaf6d Exclude python so that the generator doesn't recurse into it.
PiperOrigin-RevId: 265158620
2019-08-23 16:37:03 -07:00
Yash Katariya
ed0a60e037 Change the title to RC
PiperOrigin-RevId: 265141484
2019-08-23 15:27:49 -07:00
Yash Katariya
8693a9eaa3 Set the library name based on the version of TensorFlow
PiperOrigin-RevId: 263035092
2019-08-12 18:13:34 -07:00
Mark Daoust
825ca4b766 add deprecation notice.
PiperOrigin-RevId: 257408291
2019-07-10 08:28:40 -07:00
Yash Katariya
9097812f34 Add raw_ops_doc based on the version of tf
PiperOrigin-RevId: 256464469
2019-07-03 18:35:39 -07:00
Mark Daoust
0a1c6493ed Add link to RFC from raw_ops
PiperOrigin-RevId: 256256892
2019-07-02 18:15:49 -07:00
Mark Daoust
cc6639d9a3 Hide flags.
PiperOrigin-RevId: 254477676
2019-06-21 15:42:22 -07:00
Mark Daoust
b0b2681243 Do not generate docs for pywrap_tensorflow
PiperOrigin-RevId: 254434440
2019-06-21 11:47:53 -07:00
Mark Daoust
53c25e3db9 Add a TF1.X path to generate2.py
It's version2 of the docs generator, not the docs generator for tensorflow2

PiperOrigin-RevId: 254407102
2019-06-21 09:07:13 -07:00
Yash Katariya
4b15e46ab2 Beta0 => Beta1 switch
PiperOrigin-RevId: 253217990
2019-06-14 06:39:26 -07:00
Yash Katariya
99948841ee Alpha => Beta kokoro and devsite
PiperOrigin-RevId: 252048346
2019-06-07 07:58:42 -07:00
Yash Katariya
154520d9ee Add a space so that copybara will find the string and export it
PiperOrigin-RevId: 250556809
2019-05-29 13:48:55 -07:00
Yash Katariya
9747ab1249 Remove the '",' that shows up in the install instructions.
PiperOrigin-RevId: 250291442
2019-05-28 09:01:53 -07:00
Mark Daoust
db2244a024 Fix docstring for main TF 2.0 module in generated docs.
PiperOrigin-RevId: 249920471
2019-05-24 16:48:00 -07:00
Mark Daoust
6680cb3105 Hide methods and properties defined by the tf.keras.layers.Layer class.
Note: that this will also hide sub-class overrides.
Using the `do_not_generate_docs` decorator instead would un-hide overrides.
PiperOrigin-RevId: 246656476
2019-05-04 09:28:39 -07:00
Yash Katariya
5581c1ca60 Internal change
PiperOrigin-RevId: 246053425
2019-04-30 18:40:47 -07:00