code
stringlengths
3
6.57k
wrap_compute_deformable_conv2d(topi_compute)
_compute_deformable_conv2d(attrs, inputs, out_dtype)
get_const_tuple(attrs.padding)
get_const_tuple(attrs.strides)
get_const_tuple(attrs.dilation)
in ("same", "")
override_native_generic_func("deformable_conv2d_strategy")
deformable_conv2d_strategy(attrs, inputs, out_type, target)
_op.OpStrategy()
wrap_compute_deformable_conv2d(topi.nn.deformable_conv2d_nchw)
wrap_topi_schedule(topi.generic.schedule_deformable_conv2d_nchw)
wrap_compute_deformable_conv2d(topi.nn.deformable_conv2d_nhwc)
RuntimeError("Layout %s is not supported in deformable conv2d" % layout)
wrap_compute_conv2d_transpose(topi_compute)
compute_conv2d_transpose(attrs, inputs, out_dtype)
get_const_tuple(attrs.padding)
get_const_tuple(attrs.strides)
in ("same", "")
get_const_tuple(attrs.output_padding)
topi_compute(inputs[0], inputs[1], strides, padding, out_dtype, output_padding)
override_native_generic_func("conv2d_transpose_strategy")
conv2d_transpose_strategy(attrs, inputs, out_type, target)
logger.warning("conv2d_transpose is not optimized for this platform.")
get_const_tuple(attrs.dilation)
_op.OpStrategy()
wrap_compute_conv2d_transpose(topi.nn.conv2d_transpose_nchw)
wrap_topi_schedule(topi.generic.schedule_conv2d_transpose_nchw)
wrap_compute_conv3d_transpose(topi_compute)
compute_conv3d_transpose(attrs, inputs, out_dtype)
get_const_tuple(attrs.padding)
get_const_tuple(attrs.strides)
get_const_tuple(attrs.output_padding)
in ("same", "")
topi_compute(inputs[0], inputs[1], strides, padding, out_dtype, output_padding)
override_native_generic_func("conv3d_transpose_strategy")
conv3d_transpose_strategy(attrs, inputs, out_type, target)
logger.warning("conv3d_transpose is not optimized for this platform.")
get_const_tuple(attrs.dilation)
_op.OpStrategy()
wrap_compute_conv3d_transpose(topi.nn.conv3d_transpose_ncdhw)
wrap_topi_schedule(topi.generic.schedule_conv3d_transpose_ncdhw)
wrap_compute_conv3d(topi_compute, need_layout=False)
_compute_conv3d(attrs, inputs, out_type)
get_const_tuple(attrs.padding)
get_const_tuple(attrs.strides)
get_const_tuple(attrs.dilation)
in ("same", "")
out_dtype (dilation_d, dilation_h, dilation_w)
ValueError("Dilation should be positive value")
ValueError("Not support arbitrary group number for conv3d")
topi_compute(inputs[0], inputs[1], strides, padding, dilation, layout, out_dtype)
topi_compute(inputs[0], inputs[1], strides, padding, dilation, out_dtype)
override_native_generic_func("conv3d_strategy")
conv3d_strategy(attrs, inputs, out_type, target)
logger.warning("conv3d is not optimized for this platform.")
_op.OpStrategy()
wrap_compute_conv3d(topi.nn.conv3d_ncdhw)
wrap_topi_schedule(topi.generic.schedule_conv3d_ncdhw)
wrap_compute_conv3d(topi.nn.conv3d_ndhwc)
wrap_topi_schedule(topi.generic.schedule_conv3d_ndhwc)
ValueError("Not support this layout {} yet".format(layout)
override_native_generic_func("conv3d_winograd_without_weight_transform_strategy")
conv3d_winograd_without_weight_transfrom_strategy(attrs, inputs, out_type, target)
ValueError("No generic implemenation for conv3d_winograd_without_weight_transform")
schedule_conv3d_winograd_weight_transform(attrs, outs, target)
topi.generic.schedule_conv3d_winograd_weight_transform(outs)
wrap_compute_conv1d(topi_compute)
_compute_conv1d(attrs, inputs, out_type)
get_const_tuple(attrs.strides)
get_const_tuple(attrs.padding)
get_const_tuple(attrs.dilation)
in ("same", "")
topi_compute(inputs[0], inputs[1], strides, padding, dilation, out_dtype)
override_native_generic_func("conv1d_strategy")
conv1d_strategy(attrs, inputs, out_type, target)
logger.warning("conv1d is not optimized for this platform.")
get_const_tuple(attrs.dilation)
ValueError("dilation should be a positive value")
_op.OpStrategy()
wrap_compute_conv1d(topi.nn.conv1d_ncw)
wrap_topi_schedule(topi.generic.schedule_conv1d_ncw)
wrap_compute_conv1d(topi.nn.conv1d_nwc)
wrap_topi_schedule(topi.generic.schedule_conv1d_nwc)
ValueError("Unsupported conv1d layout {}".format(layout)
wrap_compute_conv1d_transpose(topi_compute)
_compute_conv1d_tranpsoe(attrs, inputs, out_type)
get_const_tuple(attrs.padding)
get_const_tuple(attrs.strides)
in ("same", "")
get_const_tuple(attrs.output_padding)
topi_compute(inputs[0], inputs[1], strides, padding, out_dtype, output_padding)
override_native_generic_func("conv1d_transpose_strategy")
conv1d_transpose_strategy(attrs, inputs, out_type, target)
logger.warning("conv1d_transpose is not optimized for this platform.")
_op.OpStrategy()
get_const_tuple(attrs.dilation)
wrap_compute_conv1d_transpose(topi.nn.conv1d_transpose_ncw)
wrap_topi_schedule(topi.generic.schedule_conv1d_transpose_ncw)
wrap_compute_dilation2d(topi_compute, need_data_layout=False)
_compute_dilation2d(attrs, inputs, out_type)