Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
tensorflow-federated
提交
89513c89
提交
89513c89
编辑于
11月 19, 2021
作者:
Keith Rush
提交者:
tensorflow-copybara
11月 19, 2021
浏览文件
Extends documentation of TFF's TensorType to explicitly discuss tensor shapes and unknown ranks.
PiperOrigin-RevId: 411173120
上级
73a6e4ff
变更
1
Hide whitespace changes
Inline
Side-by-side
docs/federated_core.md
浏览文件 @
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.
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录