Yaron Koresh commited on
Commit
723fc44
·
verified ·
1 Parent(s): fe177e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -549,7 +549,7 @@ def upscaler(
549
  return enhanced_image
550
 
551
  def get_tensor_length(tensor):
552
- nums = list(tensor.size)
553
  ret = 1
554
  for num in nums:
555
  ret = ret * num
 
549
  return enhanced_image
550
 
551
  def get_tensor_length(tensor):
552
+ nums = list(tensor.size())
553
  ret = 1
554
  for num in nums:
555
  ret = ret * num