tf.contrib.checkpoint.Mapping
Stay organized with collections
Save and categorize content based on your preferences.
An append-only trackable mapping data structure with string keys.
tf.contrib.checkpoint.Mapping(
*args, **kwargs
)
Maintains checkpoint dependencies on its contents (which must also be
trackable), named based on its keys.
Note that once a key has been added, it may not be deleted or replaced. If
names may not be unique, see tf.contrib.checkpoint.UniqueNameTracker
.
Attributes |
layers
|
|
losses
|
Aggregate losses from any Layer instances.
|
non_trainable_variables
|
|
non_trainable_weights
|
|
trainable
|
|
trainable_variables
|
|
trainable_weights
|
|
updates
|
Aggregate updates from any Layer instances.
|
variables
|
|
weights
|
|
Methods
get
get(
key, default=None
)
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.
items
items()
D.items() -> a set-like object providing a view on D's items
keys
keys()
D.keys() -> a set-like object providing a view on D's keys
update
View source
update(
*args, **kwargs
)
values
values()
D.values() -> an object providing a view on D's values
__contains__
__contains__(
key
)
__eq__
View source
__eq__(
other
)
Return self==value.
__getitem__
View source
__getitem__(
key
)
__iter__
View source
__iter__()
__len__
View source
__len__()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.checkpoint.Mapping\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/data_structures.py#L585-L653) |\n\nAn append-only trackable mapping data structure with string keys. \n\n tf.contrib.checkpoint.Mapping(\n *args, **kwargs\n )\n\nMaintains checkpoint dependencies on its contents (which must also be\ntrackable), named based on its keys.\n\nNote that once a key has been added, it may not be deleted or replaced. If\nnames may not be unique, see [`tf.contrib.checkpoint.UniqueNameTracker`](../../../tf/contrib/checkpoint/UniqueNameTracker).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|---------------------------|-----------------------------------------------|\n| `layers` | \u003cbr /\u003e \u003cbr /\u003e |\n| `losses` | Aggregate losses from any `Layer` instances. |\n| `non_trainable_variables` | \u003cbr /\u003e \u003cbr /\u003e |\n| `non_trainable_weights` | \u003cbr /\u003e \u003cbr /\u003e |\n| `trainable` | \u003cbr /\u003e \u003cbr /\u003e |\n| `trainable_variables` | \u003cbr /\u003e \u003cbr /\u003e |\n| `trainable_weights` | \u003cbr /\u003e \u003cbr /\u003e |\n| `updates` | Aggregate updates from any `Layer` instances. |\n| `variables` | \u003cbr /\u003e \u003cbr /\u003e |\n| `weights` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `get`\n\n get(\n key, default=None\n )\n\nD.get(k\\[,d\\]) -\\\u003e D\\[k\\] if k in D, else d. d defaults to None.\n\n### `items`\n\n items()\n\nD.items() -\\\u003e a set-like object providing a view on D's items\n\n### `keys`\n\n keys()\n\nD.keys() -\\\u003e a set-like object providing a view on D's keys\n\n### `update`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/data_structures.py#L639-L641) \n\n update(\n *args, **kwargs\n )\n\n### `values`\n\n values()\n\nD.values() -\\\u003e an object providing a view on D's values\n\n### `__contains__`\n\n __contains__(\n key\n )\n\n### `__eq__`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/data_structures.py#L247-L250) \n\n __eq__(\n other\n )\n\nReturn self==value.\n\n### `__getitem__`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/data_structures.py#L643-L644) \n\n __getitem__(\n key\n )\n\n### `__iter__`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/data_structures.py#L652-L653) \n\n __iter__()\n\n### `__len__`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/data_structures.py#L646-L647) \n\n __len__()"]]