| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
* golang: added Session.ListDevices method
|
|
|
|
| |
see https://github.com/tensorflow/tensorflow/issues/13129
|
|
|
|
| |
PiperOrigin-RevId: 156221562
|
|
|
|
| |
Change: 152200430
|
|
|
|
|
|
|
|
| |
A Session is configured using the ConfigProto protocol buffer.
For now, continuing with attempts to keep the 'tensorflow' go package
free of any protocol buffer dependencies, SessionOptions uses a serialized
representation of this message. This choice might make sense to revisit.
Change: 148750535
|
|
|
|
| |
Change: 147783087
|
|
|
|
| |
Change: 147543652
|
|
|
|
| |
Change: 146938337
|
|
|
|
| |
Change: 139377074
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prior to this change, TF_*Run, TF_SetAttrTensor and TF_SetAttrTensorList
took ownership of the TF_Tensor*s of the feeds. This can make performance
client languages bothersome when the same Tensor is repeatedly fed into
multiple session executions as the memory for the feed tensor would need
to be re-allocated and filled in every time.
With this change, these functions no longer take ownership of the
TF_Tensor*.
The changes to the Go API implementation reflect the claimed benefits.
(Another step towards #10)
Change: 139169388
|
|
|
|
|
|
|
|
|
| |
This makes the preferred API for graph construction and
execution have the simpler, more sensible names (TF_Session,
TF_NewSession etc.) and the older one which we hope to
eventually remove have the more awkward ones (TF_DeprecatedSession,
TF_NewDeprecatedSession etc.)
Change: 138641615
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an example (that will appear in Go doc) for a real use of the Go TensorFlow
APIs - using a pre-defined image recognition model for inference.
While at it a couple of minor tweaks:
- NewSession now accepts 'nil' for options as the documentation says it does
- Convenience accessors for the Outputs of an Operation
- Ability to extract (possibly partial) shapes from an Output
Another step towards #10
Change: 134560938
|
|
|
|
| |
Change: 131089292
|
|
Remaining work to do:
- Generated ops.
- Generated protocol buffers.
- A few calls requiring protocol buffers aren't in this change.
Change: 131066649
|