提交 82d0dea5 authored 作者: Thomas George's avatar Thomas George

removed typecode from props

上级 6b197857
...@@ -962,7 +962,7 @@ class GpuAllocEmpty(HideC, AllocEmpty): ...@@ -962,7 +962,7 @@ class GpuAllocEmpty(HideC, AllocEmpty):
Allocate uninitialized memory on the GPU. Allocate uninitialized memory on the GPU.
""" """
__props__ = ('dtype', 'context_name', 'typecode') __props__ = ('dtype', 'context_name')
_f16_ok = True _f16_ok = True
params_type = ParamsType(context=gpu_context_type, params_type = ParamsType(context=gpu_context_type,
typecode=int32_t) typecode=int32_t)
......
...@@ -6633,7 +6633,7 @@ class Choose(Op): ...@@ -6633,7 +6633,7 @@ class Choose(Op):
class AllocEmpty(gof.Op): class AllocEmpty(gof.Op):
"""Implement Alloc on the cpu, but without initializing memory.""" """Implement Alloc on the cpu, but without initializing memory."""
__props__ = ("dtype", "typecode") __props__ = ("dtype", )
params_type = ParamsType(typecode=int32_t) params_type = ParamsType(typecode=int32_t)
# specify the type of the data # specify the type of the data
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论