- arguments:
- arg: THTensor* self
broadcast: mask inplace fallback types:Byte
- - THBoolTensor* mask
+ - THByteTensor* mask
- real value
- zero_dim_tensor_only: True
arguments:
- arg: THTensor* self
broadcast: mask inplace fallback types:Byte
- - THBoolTensor* mask
+ - THByteTensor* mask
- THTensor* value
]]
[[
arguments:
- arg: THTensor* self
broadcast: mask inplace fallback types:Byte
- - THBoolTensor* mask
+ - THByteTensor* mask
- THTensor* source
]]
[[
output: True
- arg: THTensor* self
broadcast: mask fallback types:Byte
- - THBoolTensor* mask
+ - THByteTensor* mask
]]
[[
name: _th_nonzero
options:
- cname: ltValue
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- THTensor* self
- real other
- cname: ltTensor
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- arg: THTensor* self
broadcast: other fallback
options:
- cname: gtValue
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- THTensor* self
- real other
- cname: gtTensor
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- arg: THTensor* self
broadcast: other fallback
options:
- cname: leValue
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- THTensor* self
- real other
- cname: leTensor
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- arg: THTensor* self
broadcast: other fallback
options:
- cname: geValue
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- THTensor* self
- real other
- cname: geTensor
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- arg: THTensor* self
broadcast: other fallback
options:
- cname: eqValue
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- THTensor* self
- real other
- cname: eqTensor
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- arg: THTensor* self
broadcast: other fallback
options:
- cname: neValue
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- THTensor* self
- real other
- cname: neTensor
arguments:
- - arg: THBoolTensor* result
+ - arg: THByteTensor* result
output: True
- arg: THTensor* self
broadcast: other fallback
TYPE_FORMAL_GENERIC = {
'THTensor*': 'Tensor &',
'THSTensor*': 'SparseTensorRef',
- 'THBoolTensor*': 'Tensor &',
+ 'THByteTensor*': 'Tensor &',
'THIndexTensor*': 'Tensor &',
'THIntegerTensor*': 'Tensor &',
'THDenseTensor*': 'Tensor &',
DYNAMIC_TYPE = {
'THTensor*': 'Tensor',
'THSTensor*': 'SparseTensorRef',
- 'THBoolTensor*': 'BoolTensor',
+ 'THByteTensor*': 'BoolTensor',
'THIndexTensor*': 'IndexTensor',
'THIntegerTensor*': 'IntegerTensor',
'THDenseTensor*': 'Tensor',
TYPE_RETURN = {
'THTensor*': 'Tensor',
'THIndexTensor*': 'Tensor',
- 'THBoolTensor*': 'Tensor',
+ 'THByteTensor*': 'Tensor',
'THIntegerTensor*': 'Tensor',
'THSTensor*': 'Tensor',
'THDenseTensor*': 'Tensor',
'checked_tensor_unwrap('
'${arg_name}.tref,"${arg_name}",${arg_pos},false, '
'Backend::${Backend}, ScalarType::${ScalarName})'),
- 'THBoolTensor*':
+ 'THByteTensor*':
CodeTemplate(
'checked_tensor_unwrap('
'${arg_name},"${arg_name}",${arg_pos}, ${null_okay}, '
'THTensor*': '{}_',
'THSTensor*': '{}_',
'THIndexTensor*': '{}_',
- 'THBoolTensor*': '{}_',
+ 'THByteTensor*': '{}_',
'THIntegerTensor*': '{}_',
'THDenseTensor*': '{}_',
'THDenseIndexTensor*': '{}_',
'THTensor*': 'c10::make_intrusive<TensorImpl, UndefinedTensorImpl>'
'(c10::Storage(caffe2::TypeMeta::Make<${ScalarType}>(), 0, allocator(), true),'
'${Backend}TensorId(), false).release()',
- 'THBoolTensor*': 'c10::make_intrusive<TensorImpl, UndefinedTensorImpl>'
+ 'THByteTensor*': 'c10::make_intrusive<TensorImpl, UndefinedTensorImpl>'
'(c10::Storage(scalarTypeToTypeMeta(ScalarType::Byte), 0, allocator(), true),'
'${Backend}TensorId(), false).release()',
'THIndexTensor*': 'c10::make_intrusive<TensorImpl, UndefinedTensorImpl>'
ALLOC_WRAP = {
'THTensor*': '${arguments}',
- 'THBoolTensor*': '${arguments}',
+ 'THByteTensor*': '${arguments}',
'THIndexTensor*': '${arguments}',
'THIntegerTensor*': '${arguments}',
'THDenseTensor*': '${arguments}',