matches method
- DType dtype
Implementation
bool matches(DType dtype) {
final lease = _owner.lease('DTypeSelector');
try {
return _runtime._client.invokeSync('dtypeSelectorMatches', {
'input': lease.handle.toString(),
'dtype': dtype.toJson(),
})['matches']
as bool;
} finally {
lease.end();
}
}