aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/framework
Commit message (Collapse)AuthorAge
* Updating the V2 variables API.Gravatar Alexandre Passos2018-09-27
| | | | PiperOrigin-RevId: 214824023
* Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-09-17
| | | | | | | | self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about: * the fact that the session may be reused. * the session is not closed even when doing a "with self.test_session()" statement. PiperOrigin-RevId: 213326581
* Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-09-10
| | | | | | | | self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about: * the fact that the session may be reused. * the session is not closed even when doing a "with self.test_session()" statement. PiperOrigin-RevId: 212336464
* Merge pull request #21702 from facaiy:ENH/assert_partial_shapeGravatar TensorFlower Gardener2018-08-28
|\ | | | | | | PiperOrigin-RevId: 210626817
* | Move from deprecated self.test_session() to self.cached_session().Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | | | | | | | | | self.test_session() has been deprecated in 9962eb5e84b15e309410071b06c2ed2d6148ed44 as its name confuses readers of the test. Moving to cached_session() instead which is more explicit about: * the fact that the session may be reused. * the session is not closed even when doing a "with self.test_session()" statement. PiperOrigin-RevId: 209700634
* | Move from deprecated self.test_session() to self.session() when a graph is set.Gravatar A. Unique TensorFlower2018-08-21
| | | | | | | | | | | | self.test_session() has been deprecated in cl/208545396 as its behavior confuses readers of the test. Moving to self.session() instead. PiperOrigin-RevId: 209696110
| * CLN: rename _shape_tensor_equal to _shape_tensor_compatibleGravatar Yan Facai (颜发才)2018-08-21
| |
| * TST: add test case for with_shapeGravatar Yan Facai (颜发才)2018-08-18
| |
| * BUG: fix for partial shapeGravatar Yan Facai (颜发才)2018-08-18
|/
* Remove magic-doc-links from code.Gravatar Mark Daoust2018-08-16
| | | | | | | | | | This change contains no code changes. Only doc-strings. We can't use relative links in code files, so we don't have much choice but to link to tensorflow.org/ The deleted links were to docs that no longer exist. PiperOrigin-RevId: 209019572
* Do not access .op and attrs of EagerTensor in mutex.Gravatar Alexandre Passos2018-08-16
| | | | PiperOrigin-RevId: 209016800
* Merge branch 'master' into 10622-RecordInput-docGravatar annarev2018-08-10
|\
| * Merge pull request #15608 from accraze:patch-1Gravatar TensorFlower Gardener2018-08-09
| |\ | | | | | | | | | PiperOrigin-RevId: 208099821
| * | Remove usage of magic-api-link syntax from source files.Gravatar Mark Daoust2018-08-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Back-ticks are now converted to links in the api_docs generator. With the new docs repo we're moving to simplify the docs pipeline, and make everything more readable. By doing this we no longer get test failures for symbols that don't exist (`tf.does_not_exist` will not get a link). There is also no way, not to set custom link text. That's okay. This is the result of the following regex replacement (+ a couple of manual edits.): re: @\{([^$].*?)(\$.+?)?} sub: `\1` Which does the following replacements: "@{tf.symbol}" --> "`tf.symbol`" "@{tf.symbol$link_text}" --> "`tf.symbol`" PiperOrigin-RevId: 208042358
| * | Split checkpoint management utility functions out of saver.pyGravatar Allen Lavoie2018-08-02
| | | | | | | | | | | | | | | | | | Pure refactor, in preparation for adding a higher level checkpoint management utility. This utility will also need to work with the Checkpoint proto, and globbing it on to saver.py seems dirty. PiperOrigin-RevId: 207179646
| * | Add map_structure_with_paths to list of documented nest symbols.Gravatar A. Unique TensorFlower2018-08-01
| | | | | | | | | | | | PiperOrigin-RevId: 206938939
| * | Add synchronization and aggregation arguments to variable creation methods ↵Gravatar Yuefeng Zhou2018-07-22
| | | | | | | | | | | | | | | | | | in contrib/layers. PiperOrigin-RevId: 205588849
| * | Makes Variable an abstract base class with a factory-constructing metaclass.Gravatar Alexandre Passos2018-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The metaclass, when asked to make instances of Variable, will loop over a scope of creator functions calling them, before finally bottoming out on a function which constructs a subclass of Variable, which goes through the normal route. This allows us to split Variable from RefVariable and to, in a follow-up CL, add a use_resource argument to the Variable constructor so it can also return ResourceVariable. This is the minimal change to get things working; it does not expose the creator stack or add the use_resource argument. PiperOrigin-RevId: 204910138
| * | Replace unnecessary `()` in `run_in_graph_and_eager_modes()`.Gravatar Tom Hennigan2018-06-22
| | | | | | | | | | | | PiperOrigin-RevId: 201652888
| * | Merge changes from github.Gravatar Akshay Modi2018-06-18
| | | | | | | | | | | | PiperOrigin-RevId: 201110240
| * | Automated g4 rollback of changelist 201011811Gravatar Akshay Modi2018-06-18
| | | | | | | | | | | | PiperOrigin-RevId: 201033171
| * | Merge changes from github.Gravatar Akshay Modi2018-06-18
| | | | | | | | | | | | PiperOrigin-RevId: 201011811
| * | Adds support for explicitly assigning the replica to the ↵Gravatar A. Unique TensorFlower2018-06-14
| | | | | | | | | | | | | | | | | | VariableDeviceChooser. This is necessary for when the device with replica is set in a surrounding arg_scope. PiperOrigin-RevId: 200567897
| | * fix indent on testsGravatar accraze2018-06-07
| | |
| * | Merge changes from github.Gravatar Yifei Feng2018-05-24
| | | | | | | | | | | | | | | | | | | | | Revert #18413. Too many internal test failures due to the name scope change caused by this change. Revert #18192. Cannot use re2::StringPiece internally. Need alternative for set call. Will pull and clean this up in a separate change. PiperOrigin-RevId: 197991247
| * | Remove _USE_C_API staging in tests now that the C API is enabled by default.Gravatar Skye Wanderman-Milne2018-05-16
| | | | | | | | | | | | | | | | | | This is in preparation for removing the _USE_C_API toggle altogether. PiperOrigin-RevId: 196920481
| | * use arg_scope_func_key instead of _key_op fn nameGravatar accraze2018-05-10
| | |
| | * adding arg scope testGravatar accraze2018-05-05
| | |
| | * update _DECORATED_OPS for each latest callGravatar Andy Craze2018-05-05
| | | | | | | | | | | | | | | | | | This fixes a race condition where `add_arg_scope` doesn't reliably extract the arg list. fixes #11923
| * | Removing remove_undocumented calls from tensorflow/python.Gravatar Anna R2018-04-25
| | | | | | | | | | | | PiperOrigin-RevId: 194274698
| * | Make CriticalSection work inside a Dataset with eager execution enabled.Gravatar Asim Shankar2018-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tf.colocate_with() might be provided with eager tensors when constructing TensorFlow functions (like the subgraph for map() inside a tf.data.Dataset). Prior to this change, the added test would fail with: "Tensor.op is meaningless when eager execution is enabled." PiperOrigin-RevId: 194217166
| * | Make tf.contrib.framework.zero_initializer work with ResourceVariableGravatar A. Unique TensorFlower2018-04-24
| | | | | | | | | | | | PiperOrigin-RevId: 194077027
| * | Merge changes from github.Gravatar Yifei Feng2018-04-23
| | | | | | | | | | | | PiperOrigin-RevId: 194031845
* | | Add `@@RecordInput` so that docs could be exposedGravatar Yong Tang2018-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After this change and run with: ``` bazel run tools/docs:generate -- --src_dir="$(pwd)/docs_src/" --output_dir=/tmp/tfdocs/ ``` The documentation correctly shown up in: `/tmp/tfdocs/api_docs/python/tf/contrib/framework/RecordInput.md` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* | | Add RecordInput documentation to tf.contrib.frameworkGravatar Yong Tang2018-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix tries to address the issue raised in 10622 where the RecordInput is not available in the documentation. As was suggested in 10622, this fix exposes RecordInput to tf.contrib (tf.contrib.framework) so that docs could shown up. This fix fixes 10622. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* | | Merge commit for internal changesGravatar Yifei Feng2018-04-17
|\| |
* | | Add support for explicit broadcasting in TensorFlow (#15243)Gravatar Yong Tang2018-04-15
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for explicit broadcasting in TensorFlow This fix tries to adds support for explicit broadcasting in TensorFlow, as was suggested in 14509. This fix adds the op of tf.broadcast_to, which is equivalent to the numpy.broadcast_to in numpy. This fix fixes 14509. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Register BroadcastTo op in array_ops.cc Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Sanitize with clang-format -i Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add test cases for tf.broadcast_to Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Sanitize bazel BUILD and python. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Split broadcast_to_ops_test from array_ops_test Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Support int64 shape Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Improve shape inference for broadcast_to Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add scalar input support for broadcast_to Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update API defs tensorflow/core/api_def/update_api_def.sh Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update API golden ``` bazel-bin/tensorflow/tools/api/tests/api_compatibility_test --update_goldens True ``` Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update docstring for broadcast_to Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Enable GPU kernel for BroadcastTo Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Enable use_gpu=True for test cases Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Hiden the ops and export to tf.contrib.framework for now. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add the op to the _allowed_symbol in tf.contrib.framework Otherwise the symbole will be hidden Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix pylint sanity issue. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
| * Adding 1d and 3d orthogonal kernels convolutions.Gravatar A. Unique TensorFlower2018-04-13
|/ | | | PiperOrigin-RevId: 192861809
* Construct Orthogonal kernels for 2d convolutions.Gravatar A. Unique TensorFlower2018-04-12
| | | | PiperOrigin-RevId: 192645769
* Additional arg scope test that demonstrate how nested arg_scope objects behave.Gravatar A. Unique TensorFlower2018-04-02
| | | | PiperOrigin-RevId: 191308666
* - Expose slim arg_scope function to compute keys to enable tessting.Gravatar A. Unique TensorFlower2018-03-29
| | | | | | - Add is_training=None option to mobinenet arg_scopes. This allows the users to set is_training from an outer scope. PiperOrigin-RevId: 190997959
* Remove all_opensource_files. It's not needed any more.Gravatar Martin Wicke2018-03-28
| | | | PiperOrigin-RevId: 190878279
* Add tf.contrib.framework.argsort, wrapping tf.nn.top_k (#288).Gravatar Dan Ringwalt2018-03-22
| | | | | | Comparable to np.argsort. PiperOrigin-RevId: 190109968
* [TF CriticalSection] Bugfix when Execute() inside a while_loop has a dep on ↵Gravatar Eugene Brevdo2018-03-21
| | | | | | a Variable outside of it. PiperOrigin-RevId: 189957569
* Merge changes from github.Gravatar Jacques Pienaar2018-03-21
| | | | PiperOrigin-RevId: 189945839
* [tf.contrib CriticalSection] Avoid deadlocks using additional control ↵Gravatar Eugene Brevdo2018-03-21
| | | | | | dependencies on the lock op. PiperOrigin-RevId: 189910726
* Introduce _USE_C_SHAPES toggle along with _USE_C_API toggle.Gravatar Skye Wanderman-Milne2018-03-13
| | | | | | | | | | | | | | | | | | | | This is a second level of staging before fully enabling the C API. With _USE_C_API enabled but _USE_C_SHAPES disabled, the C API is used for everything but retrieving the shape of Tensors (i.e. we continue using the existing Python shape inference to implement Tensor.shape). This is useful because many tests fail with the C API fully enabled. This will allow us to enable everything but the full shape inference, fix the remaining broken tests, and then enable the full shape shape inference. This change also introduces the test_util.enable_c_shapes test method decorator. This can be used to enable C shapes for a specific test method. This is useful for tests that have already been modified to work with full C shape inference. PiperOrigin-RevId: 188949619
* Add smart_case that calls smart_cond.Gravatar Skye Wanderman-Milne2018-03-09
| | | | PiperOrigin-RevId: 188534066
* eager: Rename in_eager_mode to executing_eagerly and get rid of in_graph_mode.Gravatar Asim Shankar2018-03-07
| | | | | | | | This is in preparation to introduce one public, stable symbol: tf.executing_eagerly() (i.e., part of moving APIs related to eager execution from "contrib" to a namespace where we provide API stability guarantees) PiperOrigin-RevId: 188212646
* Will open source this part of code.Gravatar A. Unique TensorFlower2018-03-04
| | | | PiperOrigin-RevId: 187747019