Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
57eb92b7
T
tensorflow
项目概览
qq_38905368
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
57eb92b7
编写于
12月 12, 2018
作者:
A
A. Unique TensorFlower
提交者:
TensorFlower Gardener
12月 12, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Internal Change
PiperOrigin-RevId: 225212001
上级
373a764c
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
30 addition
and
3 deletion
+30
-3
tensorflow/python/BUILD
tensorflow/python/BUILD
+1
-0
tensorflow/python/ops/ragged/__init__.py
tensorflow/python/ops/ragged/__init__.py
+14
-1
tensorflow/python/ops/ragged/ragged_dispatch.py
tensorflow/python/ops/ragged/ragged_dispatch.py
+9
-2
tensorflow/python/ops/standard_ops.py
tensorflow/python/ops/standard_ops.py
+6
-0
未找到文件。
tensorflow/python/BUILD
浏览文件 @
57eb92b7
...
...
@@ -3033,6 +3033,7 @@ py_library(
"//tensorflow/python/eager:wrap_function"
,
"//tensorflow/python/ops/distributions"
,
"//tensorflow/python/ops/linalg"
,
"//tensorflow/python/ops/ragged"
,
],
)
...
...
tensorflow/python/ops/ragged/__init__.py
浏览文件 @
57eb92b7
...
...
@@ -66,6 +66,15 @@ class documentation.
@@RaggedTensorDynamicShape
@@broadcast_to
@@broadcast_dynamic_shape
<!-- Modules -->
@@ragged_dispatch
@@ragged_factory_ops
@@ragged_operators
@@ragged_string_ops
@@ragged_tensor
@@ragged_tensor_value
@@ragged_util
"""
from
__future__
import
absolute_import
...
...
@@ -73,8 +82,12 @@ from __future__ import division
from
__future__
import
print_function
from
tensorflow.python.ops.ragged
import
ragged_dispatch
from
tensorflow.python.ops.ragged
import
ragged_factory_ops
from
tensorflow.python.ops.ragged
import
ragged_operators
from
tensorflow.python.ops.ragged
import
ragged_string_ops
from
tensorflow.python.ops.ragged
import
ragged_tensor
from
tensorflow.python.ops.ragged
import
ragged_tensor_value
from
tensorflow.python.ops.ragged
import
ragged_util
from
tensorflow.python.ops.ragged.ragged_array_ops
import
batch_gather
from
tensorflow.python.ops.ragged.ragged_array_ops
import
boolean_mask
...
...
@@ -133,7 +146,7 @@ from tensorflow.python.util import all_util as _all_util
# Register OpDispatchers that override standard TF ops to work w/ RaggedTensors.
__doc__
+=
ragged_dispatch
.
r
egister_dispatchers
()
# pylint: disable=redefined-builtin
__doc__
+=
ragged_dispatch
.
r
agged_op_list
()
# pylint: disable=redefined-builtin
# Any symbol that is not referenced (with "@@name") in the module docstring
# above will be removed.
...
...
tensorflow/python/ops/ragged/ragged_dispatch.py
浏览文件 @
57eb92b7
...
...
@@ -447,10 +447,17 @@ def register_dispatchers():
for
(
original_op
,
ragged_op
,
args
)
in
_RAGGED_DISPATCH_OPS
:
RaggedDispatcher
(
original_op
,
ragged_op
,
args
).
register
(
original_op
)
docstring
=
(
def
ragged_op_list
():
"""Returns a string listing operators that have dispathers registered."""
op_list
=
(
_UNARY_ELEMENTWISE_OPS
+
_UNARY_LIST_ELEMENTWISE_OPS
+
_BINARY_ELEMENTWISE_OPS
+
[
x
[
0
]
for
x
in
_RAGGED_DISPATCH_OPS
])
return
(
'
\n\n
### Additional ops that support `RaggedTensor`
\n\n
'
+
'
\n
'
.
join
([
'* `tf.%s`'
%
tf_export
.
get_canonical_name_for_symbol
(
op
)
for
op
in
op_list
]))
return
docstring
register_dispatchers
()
tensorflow/python/ops/standard_ops.py
浏览文件 @
57eb92b7
...
...
@@ -71,6 +71,8 @@ from tensorflow.python.ops.math_ops import *
from
tensorflow.python.ops.numerics
import
*
from
tensorflow.python.ops.parsing_ops
import
*
from
tensorflow.python.ops.partitioned_variables
import
*
from
tensorflow.python.ops.ragged
import
ragged_dispatch
as
_ragged_dispatch
from
tensorflow.python.ops.ragged
import
ragged_operators
as
_ragged_operators
from
tensorflow.python.ops.random_ops
import
*
from
tensorflow.python.ops.script_ops
import
py_func
from
tensorflow.python.ops.session_ops
import
*
...
...
@@ -102,3 +104,7 @@ from tensorflow.python.ops.variable_scope import *
from
tensorflow.python.ops.variables
import
*
# pylint: enable=wildcard-import
# pylint: enable=g-bad-import-order
# These modules were imported to set up RaggedTensor operators and dispatchers:
del
_ragged_dispatch
,
_ragged_operators
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录