From e6594bcdfe44acce1fa411312dcb264600ec3592 Mon Sep 17 00:00:00 2001 From: Yi Xu Date: Wed, 17 Nov 2021 14:23:02 +0800 Subject: [PATCH] Fix --- python/taichi/lang/struct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/taichi/lang/struct.py b/python/taichi/lang/struct.py index dca95393e91bf..69eddf5a46aa5 100644 --- a/python/taichi/lang/struct.py +++ b/python/taichi/lang/struct.py @@ -540,7 +540,7 @@ def filled_with_scalar(self, value): entries = {} for k, dtype in self.members.items(): if isinstance(dtype, CompoundType): - entries[k] = dtype.scalar_filled(value) + entries[k] = dtype.filled_with_scalar(value) else: entries[k] = value return Struct(entries)