| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
Makes the Variable.trainable property public, which is sensible if we're discouraging use of the global collection (currently eager execution is using ResourceVariable._trainable in a bunch of places anyway). I'm leaving it read-only for now, since we should toggle in and out of the global collection when it changes.
Same change for checkpointable data structures with respect to gathering extra variables. They'll behave like subclassed Models.
I think this makes more sense than trying to have a distinction between "variables" and "weights". It's also more sensible than collecting everything that would get checkpointed, since that will include Optimizer slot variables and metrics. Collecting those is generally pointless, and accidentally adding them to gradient tapes would be horribly confusing.
PiperOrigin-RevId: 198656079
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
objects created from VariableDef protos.
Previously self._initial_value wasn't set in such cases which causes accessing var.initial_value to fail for variables in the imported meta graphs.
PiperOrigin-RevId: 166252647
|
|
|
|
| |
Change: 146519414
|
|
|
|
|
| |
32-bit integers are not enough for representing large scale variables with more than ~2 billion elements. The change is backward compatible as the proto serialization of int32s is the same as int64s.
Change: 139393418
|
|
|
|
|
|
| |
speedup.
Change: 126726018
|
|
|
|
|
|
|
|
|
|
|
| |
outer class name consistently to <FileName>Protos. Also specifies
the java namespace as org.tensorflow.*.
This enables compiling tf protos with nano proto for Android
(which currently does not work because of file/message name
clashes) and follows the same convention for proto3 as used by the
API platform.
Change: 114279703
|
|
serializing/de-serializing the graph and other Python objects necessary
restarting training, running eval, or running inference into a MetaGraphDef
protocol buffer. MetaGraphDef contains the following:
- MetaInfoDef: For storing version and other meta data associated with the
meta graph.
- GraphDef: The Graph.
- SaverDef: The Saver.
- CollectionDef
* Int64List
* FloatList
* BytesList
* NodeList
* AnyList
These are evolving APIs and subject to change.
Change: 114026857
|