Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
tensorflow-federated
Commits
89513c89
Commit
89513c89
authored
Nov 19, 2021
by
Keith Rush
Committed by
tensorflow-copybara
Nov 19, 2021
Browse files
Extends documentation of TFF's TensorType to explicitly discuss tensor shapes and unknown ranks.
PiperOrigin-RevId: 411173120
parent
73a6e4ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/federated_core.md
View file @
89513c89
...
...
@@ -135,6 +135,14 @@ found in existing mainstream languages:
protocol. Thus, the TFF tensor type is simply an abstract version of a
concrete physical representation of such type in Python or TensorFlow.
TFF's `TensorTypes` can be stricter in their (static) treatment of shapes
than TensorFlow. For example, TFF's typesystem treats a tensor with unknown
rank as assignable *from* any other tensor of the same `dtype`, but not
assignable *to* any tensor with fixed rank. This treatment prevents certain
runtime failures (e.g., attempting to reshape a tensor of unknown rank into
a shape with incorrect number of elements), at the cost of greater
strictness in what computations TFF accepts as valid.
The compact notation for tensor types is `dtype` or `dtype[shape]`. For
example, `int32` and `int32[10]` are the types of integers and int vectors,
respectively.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment