Skip to content

Commit

Permalink
change type check
Browse files Browse the repository at this point in the history
  • Loading branch information
aerubanov committed Jan 27, 2022
1 parent 59e1c31 commit b700297
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aesara/tensor/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,7 @@ def is_super(self, otype):
return False

def convert_variable(self, var):
if self.is_super(var.type) and not isinstance(
var.type, aesara.sparse.SparseType
):
if self.is_super(var.type) and isinstance(var.type, DenseTensorType):
# `var.type` is at least as specific as `self`, so we return
# `var` as-is
return var
Expand Down

0 comments on commit b700297

Please sign in to comment.