| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Presently, the kernel keeps two copies of the constant tensor value, which can be large:
1. In the `ConstantOp::tensor_` field.
2. In the `OpKernel::def_` field (as an attr of the `NodeDef`).
Since we can be sure that `ConstantOp` will never need to access the
tensor value from `OpKernel::def_`, this change introduces a mechanism
for `OpKernel` implementations to store a stripped `NodeDef` in the
base class, and uses it in `ConstantOp` to avoid storing the tensor
value attr.
PiperOrigin-RevId: 184455793
|
|
|
|
|
|
| |
constraints in a BFS order.
PiperOrigin-RevId: 184429818
|
|
|
|
|
|
| |
mfccs_from_log_mel_spectrograms.
PiperOrigin-RevId: 184400783
|
|
|
|
| |
PiperOrigin-RevId: 184376425
|
|
|
|
| |
PiperOrigin-RevId: 184375534
|
|
|
|
| |
PiperOrigin-RevId: 184367562
|
|
|
|
|
|
|
|
|
| |
back to GPU.
Added unit testing, and also refined unit test logic for checking the presence
of a GPU device. The latter is needed when we add XLA device support.
PiperOrigin-RevId: 184366172
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add some comments about preexisting invariants, and add some CHECKs.
- In the LoopEmitter constructor, materialize the given
ArraySlice<IrArray> to a vector, so we don't rely on the given
ArraySlice having any particular lifetime.
- Add the invariant that the LoopEmitter constructor which takes a
list of IrArrays is only for multi-output fusion. Previously it said:
If you only pass one array, then treat it as regular fusion. But this
results in an LLVM type mismatch, because the given
target_element_generator should be passing a struct with one element.
PiperOrigin-RevId: 184365310
|
|
|
|
| |
PiperOrigin-RevId: 184361221
|
|
|
|
| |
PiperOrigin-RevId: 184360818
|
|
|
|
|
|
|
|
|
|
|
| |
This adds the ability to create a custom C++ Dataset implementation
without linking it statically into the TensorFlow library. Note that
this internal API is experimental and subject to change between
versions of TensorFlow.
Fixes #16682.
PiperOrigin-RevId: 184356318
|
|
|
|
|
|
|
|
|
|
| |
expected input type.
The dtype of a tensor reference can change between the point when it is "produced" by an
operation and consumed by the next operation. This evades checks in the executor that the
type of tensor on each edge matches the type signatures of the producing and consuming operation, which could lead to undefined behavior. Although there is no existing operation that changes the type of a tensor reference, it is possible to use the OpKernelContext API to do so, so we add a further check in the runtime to defend against operations that might be added in the future.
PiperOrigin-RevId: 184356242
|
|
|
|
| |
PiperOrigin-RevId: 184352399
|
|
|
|
| |
PiperOrigin-RevId: 184350480
|
|
|
|
|
|
| |
and deprecate others.
PiperOrigin-RevId: 184348303
|
|
|
|
| |
PiperOrigin-RevId: 184347081
|
|
|
|
| |
PiperOrigin-RevId: 184347012
|
|
|
|
| |
PiperOrigin-RevId: 184339842
|
|
|
|
| |
PiperOrigin-RevId: 184335231
|
|
|
|
|
|
| |
bleach 1.5 causes problems with Jupyter as reported in #16424
PiperOrigin-RevId: 184332663
|
|
|
|
| |
PiperOrigin-RevId: 184329345
|
|
|
|
| |
PiperOrigin-RevId: 184328848
|
|
|
|
|
|
|
|
| |
This will make way for the move of kernels/data/dataset.h to
framework/dataset.h, while preserving version control history, after
which we might recombine the headers.
PiperOrigin-RevId: 184327481
|
|
|
|
|
|
|
| |
Note: not all `LinearOperator` functions will support `float16`. This change
merely enables constructing the `LinearOperator` object(s) using this `dtype`.
PiperOrigin-RevId: 184323477
|
|
|
|
|
|
| |
representing a partitioning of chain state.
PiperOrigin-RevId: 184323369
|
|
|
|
| |
PiperOrigin-RevId: 184320865
|
|
|
|
| |
PiperOrigin-RevId: 184318036
|
|
|
|
| |
PiperOrigin-RevId: 184317521
|
|
|
|
|
|
|
|
| |
Previously we used an xla::Shape to track the shape of a resource (Variable, TensorArray, Stack) shape. The xla::Shape described how the resource was represented to XLA, e.g., as a (buffer, size) pair for a Stack resource.
Instead, separate the TensorFlow abstract shape representation from the XLA shape representation and track it separately. This leads to simpler and more readable code.
PiperOrigin-RevId: 184310694
|
|
|
|
|
|
| |
tensor is const.
PiperOrigin-RevId: 184309687
|
|
|
|
| |
PiperOrigin-RevId: 184309674
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the graph to enable inference of the shape of a SendFromHost Op once the shape of corresponding RecvAtHost Ops are known.
END_PUBLIC
Fixed open source build breaks.
BEGIN_PUBLIC
Automated g4 rollback of changelist 184169668
PiperOrigin-RevId: 184306845
|
|
|
|
| |
PiperOrigin-RevId: 184305574
|
|
|
|
| |
PiperOrigin-RevId: 184303789
|
|
|
|
|
|
| |
ApiDef proto.
PiperOrigin-RevId: 184301076
|
|
|
|
|
|
|
| |
Most of the exit nodes are immediate neighbors of the switch, except we do have
cases where the switch feeds into an identity that feeds into a exit.
PiperOrigin-RevId: 184297180
|
|
|
|
| |
PiperOrigin-RevId: 184296680
|
|
|
|
| |
PiperOrigin-RevId: 184291701
|
|
|
|
|
|
| |
deduped.
PiperOrigin-RevId: 184289685
|
|
|
|
| |
PiperOrigin-RevId: 184285125
|
|
|
|
|
|
|
|
| |
dereferenced ref tensor.
Previously the inliner would add an identity node with an invalid ref-type attr when the actual parameter had ref type. The changed version removes the reference.
PiperOrigin-RevId: 184285084
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When partitioned variables are used in a TPU training loop,
concat gradient operations get generated for which XLA requires
the concat dimension argument to be a constant (or foldable to a constant).
However since such constant is defined outside of the train while context
an Enter node is generated in order to pass it.
The fix consists in detecting such case, and to duplicate the (scalar) constant
inside the while context, so that XLA can succesfully process the resulting
graph.
PiperOrigin-RevId: 184273245
|
|
|
|
| |
PiperOrigin-RevId: 184247187
|
|
|
|
| |
PiperOrigin-RevId: 184240222
|
|
|
|
| |
PiperOrigin-RevId: 184247187
|
|
|
|
| |
PiperOrigin-RevId: 184240222
|
|
|
|
| |
PiperOrigin-RevId: 184239740
|
|
|
|
| |
PiperOrigin-RevId: 184236409
|
|
|
|
| |
PiperOrigin-RevId: 184233513
|
|
|
|
| |
PiperOrigin-RevId: 184227786
|