| Commit message (Collapse) | Author | Age |
|
|
|
| |
PiperOrigin-RevId: 155705565
|
|
|
|
| |
PiperOrigin-RevId: 155705170
|
|
|
|
| |
PiperOrigin-RevId: 155701631
|
|
|
|
|
|
|
|
| |
rather than a CompileFunction()/CompileGraph()-time option.
In a subsequent change we plan to add a compilation cache to XlaCompiler, keyed on function name and signature. To avoid incorrect cache hits, we must not use different function libraries in the same XlaCompiler. This change refactors the API so the function library is passed once at construction time, making this invariant more obvious.
PiperOrigin-RevId: 155701318
|
|
|
|
|
|
| |
Add a "graph" property to ResourceVariable for compatibility with Variable.
PiperOrigin-RevId: 155701128
|
|
|
|
| |
PiperOrigin-RevId: 155700672
|
|
|
|
| |
PiperOrigin-RevId: 155699009
|
|
|
|
|
|
| |
estimates.
PiperOrigin-RevId: 155698917
|
|
|
|
|
|
|
|
|
| |
This introduces a new macro, which is meant to work around the fact that ES6
imports don't work in the browser. This macro concatenates files, comments out
import lines, and adds aliases if necessary. In other words, we're defining the
ES6 module structure in the BUILD file, and ignoring what's in the .ts files.
PiperOrigin-RevId: 155697059
|
|
|
|
|
|
|
|
|
| |
Accompanying changes:
* In list_profile / lp output, let the time unit be consistent across all ops, so that the results are easier to read.
* Add the --time_unit option flag to list_profile / lp.
* Add start time to the lp output table; allow sorting by start time.
PiperOrigin-RevId: 155690128
|
|
|
|
| |
PiperOrigin-RevId: 155687697
|
|
|
|
|
|
|
|
|
|
|
| |
This is a simple Java script that inlines HTML, CSS, and JavaScript
with minification. It tries its best to preserve @license data.
The Skylark rule behaves the same as web_library(). It can be bazel
run to get the development web server. It outputs the protobuf, because
protobuf is awesome.
PiperOrigin-RevId: 155686060
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
155673782 by ashankar <ashankar@google.com>:
Windows: Fix bazel builds on Jenkins.
PR #9580 added TF_NEED_MKL as an argument to the
configure script. So that needs to be set before
invoking it on Windows.
--
155671008 by A. Unique TensorFlower <gardener@tensorflow.org>:
Internal change.
--
PiperOrigin-RevId: 155673782
|
|
|
|
|
|
| |
{sequence_}input_from_feature_columns.
PiperOrigin-RevId: 155670564
|
|
|
|
|
|
|
|
|
| |
added in an inner context.
[TF:XLA] Add checks for Ref types in encapsulate_subgraphs_pass. Add support for overriding the names of the functions generated by encapsulate_subgraphs_pass.
Relax an over-zealous check when dumping a graph in function.cc
PiperOrigin-RevId: 155669293
|
|
|
|
|
|
|
|
| |
Also improve the usability that if save_checkpoint_steps is mutated, the save_checkpoint_secs should be set as None, and vice verse.
Fixes #9795
PiperOrigin-RevId: 155668946
|
|
|
|
|
|
| |
inference dict for TensorForest estimator.
PiperOrigin-RevId: 155667839
|
|
|
|
| |
PiperOrigin-RevId: 155667634
|
|
|
|
| |
PiperOrigin-RevId: 155667448
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Python, the string "<operation>:<index>" is referred
to as the "tensor name" (see tf.get_tensor_by_name
at https://www.tensorflow.org/api_docs/python/tf/Graph#get_tensor_by_name)
and this string also appears in the saved model format as the key in
the 'inputs' field of the 'SignatureDef' protocol buffer message.
Accepting such names makes it easier to use saved models in Java
(yes, I know it still isn't easy enough!)
For example, using something like:
import org.tensorflow.SavedModelBundle;
import org.tensorflow.framework.MetaGraphDef;
import org.tensorflow.framework.SignatureDef;
// ...
try (SavedModelBundle model = SavedModelBundle.load(exportDir, "serve")) {
final SignatureDef sig =
MetaGraphDef.parseFrom(model.metaGraphDef())
.getSignatureDefOrThrow(DEFAULT_SERVING_SIGNATURE_DEF_KEY);
model.session().runner()
.feed(sig.getInputsOrThrow("inputs").getName())
.fetch(sig.getOutputsOrThrow("outputs").getName())
.run()...
}
PiperOrigin-RevId: 155667400
|
|
|
|
|
|
|
|
|
|
|
|
| |
Originally by @Mycosynth, but edited to make it work using
integer conversion.
Fixes #447.
If this breaks you, do an explicit cast of the return of get_attr to int, if you
are parsing a dtype object.
PiperOrigin-RevId: 155661630
|
|
|
|
| |
PiperOrigin-RevId: 155655617
|
|
|
|
|
|
|
|
|
|
| |
This is a first step towards porting the Python API to use the C API. As the Python Graph and Operations are constructed, an analogous TF_Graph and TF_Operations are created via SWIG. Currently nothing is done with the TF_Graph; a next step will be switching to the new TF_Session API which runs a TF_Graph directly (instead of a GraphDef).
This new functionality is disabled by default and can be manually enabled by setting the _USE_C_API global in ops.py. For this patch I only enabled it for a single test file. I tried enabling it for all TF Python tests and manually disabling it for unsupported tests, but there were too many failing tests (although most tests passed). See ops.py for a TODO list of unsupported functionality.
I benchmarked building an Inception model, and building the TF_Graph incurs a 20% overhead to the total graph construction time. Note that this patch does not remove any existing Python functionality; another next step will be recovering this time by removing redundant Python code. There is no measurable overhead with the new functionality disabled.
PiperOrigin-RevId: 155655064
|
|
|
|
| |
PiperOrigin-RevId: 155652925
|
|
|
|
|
|
|
|
| |
Add some pydoc to other columns.
Add weight_collections tests for all columns.
Rename embedding 'weights' -> 'embedding_weights', linear 'weight' -> 'weights', and linear 'bias_weight' -> 'bias_weights'.
PiperOrigin-RevId: 155648428
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
155648333 by dumitru <dumitru@google.com>:
Adding scope argument to slim's DatasetDataProvider.
--
155645726 by A. Unique TensorFlower <gardener@tensorflow.org>:
Internal only change.
--
PiperOrigin-RevId: 155648333
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
155643058 by cassandrax <cassandrax@google.com>:
Add indicator_column (formerly known as one_hot_column) to core TensorFlow.
--
155642205 by A. Unique TensorFlower <gardener@tensorflow.org>:
Internal change.
--
PiperOrigin-RevId: 155643058
|
|
|
|
|
|
|
| |
This is step 1 towards removing protos from the op definition API.
RELNOTES: Remove OpKernelConstruction::op_def() as part of minimizing proto dependencies.
PiperOrigin-RevId: 155638924
|
|
|
|
|
|
| |
Markdown does an internal conversion to unicode of any input string passed to it, which fails in case the string contains any non-ASCII characters. This fixes the problem by converting the string to unicode using UTF-8 encoding beforehand.
PiperOrigin-RevId: 155638665
|
|
|
|
|
|
|
|
| |
XlaCompiler::CompileGraph() or XlaCompiler::CompileFunction() out of XlaCompiler::Options into a separate XlaCompiler::CompileOptions.
Remove the 'prune_unreachable_nodes' options since it was unused.
PiperOrigin-RevId: 155636247
|
|
|
|
|
|
|
|
|
|
| |
Optimized the LiteralUtil::Convert() API to use flat scan over the source
and destination literal values.
Performance boost varies with size. A F32->F64 Convert() of a {32, 64, 64, 64} went from ~35s to ~500ms.
Added unittest for LiteralUtil::Convert().
Moved some common/repeated code into a new StrideConfig class.
PiperOrigin-RevId: 155624212
|
|
|
|
|
|
| |
Also removed the unused tf_graph_info component.
PiperOrigin-RevId: 155591143
|
|
|
|
|
|
|
|
| |
opcode
twice.
PiperOrigin-RevId: 155588986
|
|
|
|
| |
PiperOrigin-RevId: 155584393
|
|
|
|
|
|
| |
one place, and the relevant code is more readable (and not even meaningfully longer) without the macro.
PiperOrigin-RevId: 155569181
|
|
|
|
|
|
| |
turned out that I really needed to have tf.gradients() to backprop correctly on the gradient loop even if we have a stop_gradient on it. So, with this CL, I suspect that we are epsilon away to support higher-order gradients for while loops.
PiperOrigin-RevId: 155568884
|
|
|
|
| |
PiperOrigin-RevId: 155566351
|
|
|
|
| |
PiperOrigin-RevId: 155564265
|
|
|
|
| |
PiperOrigin-RevId: 155563563
|
|
|
|
| |
PiperOrigin-RevId: 155560204
|
|
|
|
|
|
| |
kernel runs.
PiperOrigin-RevId: 155555888
|
|
|
|
| |
PiperOrigin-RevId: 155553956
|
|
|
|
|
|
| |
separating out a 1-line summary from the main description.
PiperOrigin-RevId: 155553359
|
|
|
|
| |
PiperOrigin-RevId: 155552095
|
|
|
|
| |
PiperOrigin-RevId: 155548015
|
|
|
|
| |
PiperOrigin-RevId: 155541065
|
|
|
|
|
|
| |
removed pylint lines from test.
PiperOrigin-RevId: 155538004
|
|
|
|
| |
PiperOrigin-RevId: 155532810
|
|
|
|
| |
PiperOrigin-RevId: 155525165
|
|
|
|
| |
PiperOrigin-RevId: 155524343
|