cupy.cuda.texture.ChannelFormatDescriptor#

class cupy.cuda.texture.ChannelFormatDescriptor(int x, int y, int z, int w, int f)[源码]#

一个保存通道格式描述的类。等同于 cudaChannelFormatDesc

参数:
  • x (int) – x 通道的位数。

  • y (int) – y 通道的位数。

  • z (int) – z 通道的位数。

  • w (int) – w 通道的位数。

  • f (int) – 通道格式。使用 cudaChannelFormat* 中的值之一,例如 cupy.cuda.runtime.cudaChannelFormatKindFloat

方法

get_channel_format(self)#

返回包含输入的字典。

__eq__(value, /)#

返回 self==value。

__ne__(value, /)#

返回 self!=value。

__lt__(value, /)#

返回 self<value。

__le__(value, /)#

返回 self<=value。

__gt__(value, /)#

返回 self>value。

__ge__(value, /)#

返回 self>=value。

属性

ptr#