提交 16265ccb authored 作者: David Warde-Farley's avatar David Warde-Farley

DOC: spelling fixes.

上级 923a23b1
......@@ -943,17 +943,17 @@ def get_device_type_sizes():
def max_inputs_to_GpuElemwise(node):
"""
return the maximum number of input this GpuElemwise Apply node can
return the maximum number of inputs this GpuElemwise Apply node can
accept.
This is needed as currently their is a limit of 256 bytes of
paramter for the gpu function on device of compute capability
1.x. There is a 4k bytes limit on device compute capability
This is needed as currently there is a limit of 256 bytes of
parameter for the gpu function on devices with compute capability
1.x. There is a 4 kbyte limit on devices with compute capability
2.x (not used).
This mesure the number of paramter we put in our gpu function and
compute the maximum number of inputs that respect the 256 bytes
limits.
This measures the number of parameters we put in our GPU function and
computes the maximum number of inputs that respect the 256 byte
limit.
"""
type_sizes = get_device_type_sizes()
int_size = type_sizes['int_size']
......@@ -970,8 +970,8 @@ def max_inputs_to_GpuElemwise(node):
nb_bytes_per_inputs = (ndim*int_size) + gpu_ptr_size
max_nb_inputs = nb_bytes_avail // nb_bytes_per_inputs
# There is a case this don't algo don't work. Is this related to
# the order of paramter to the gpu function?
# There is a case this don't algorithm doesn't work. Is this related to
# the order of the parameters to the gpu function?
if node.inputs[0].type.ndim==1 and max_nb_inputs>14:
return 14
return max_nb_inputs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论