提交 bf7320ea authored 作者: Frederic's avatar Frederic 提交者: Olivier Delalleau

fix typo following code review.

上级 c24bff19
......@@ -55,14 +55,14 @@ There are less methods to define for an Op than for a Type:
.. method:: c_support_code()
Allows you to specify helper functions/structs that the
:ref:`op` needs. That code must be idem for each apply of the
node. It will be inserted at global scope.
:ref:`op` needs. That code will be reused for each apply of
this op. It will be inserted at global scope.
.. method:: c_support_code_apply(node, name)
Allows you to specify helper functions/structs specialised for a
Allows you to specify helper functions/structs specialized for a
particular apply of an :ref:`op`. Use `c_support_code` if the
code is the same for each apply of an node.
code is the same for each apply of an op.
It will be inserted at global scope.
.. method:: infer_shape(node, (i0_shapes,i1_shapes,...))
......@@ -77,8 +77,8 @@ There are less methods to define for an Op than for a Type:
.. method:: c_code_cache_version()
Should return a tuple of hashable object like interger. This
specify the version of the code. It is used to cache the
Should return a tuple of hashable objects like integers. This
specifies the version of the code. It is used to cache the
compiled code. You MUST change the returned tuple for each
change in the code. If you don't want to cache the compiled code
return an empty tuple or don't implement it.
......
......@@ -97,13 +97,13 @@ the most important ones:
.. method:: c_compiler()
Allows to specify a special compiler. This will force this compiler
to all the compilation bloc(a particular op or the full graph).
for the current compilation block (a particular op or the full graph).
This is used for the GPU code.
.. method:: c_code_cache_version()
Should return a tuple of hashable object like interger. This
specify the version of the code. It is used to cache the
Should return a tuple of hashable objects like integers. This
specifies the version of the code. It is used to cache the
compiled code. You MUST change the returned tuple for each
change in the code. If you don't want to cache the compiled code
return an empty tuple or don't implement it.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论