source generator upgrade

This commit is contained in:
h z
2024-07-10 15:27:36 +01:00
parent 401e48e0ba
commit a8688d7f95
50 changed files with 61 additions and 61 deletions

View File

@@ -10,7 +10,7 @@ using Skeleton.DataStructure;
namespace Enigmos.Modules.ComputationalModules.Binary;
public partial class ScalarDivisionModule : BinaryComputationalModule,
public abstract partial class ScalarDivisionModule : BinaryComputationalModule,
IPolymorphismModule,
IDuplicateOutputModule
{
@@ -60,8 +60,8 @@ public partial class ScalarDivisionModule : BinaryComputationalModule,
public void Inference()
{
if (GlobalProvider.DataPackageTypeProvider!.IsComplexTensorType(ScalarInputGroup!.SelectedType))
OutputGroup!.SelectedType = GlobalProvider.DataPackageTypeProvider.ComplexVersionOf(TensorInputGroup!.SelectedType);
if (GlobalProvider.DataTypeProvider!.IsComplexTensorType(ScalarInputGroup!.SelectedType))
OutputGroup!.SelectedType = GlobalProvider.DataTypeProvider.ComplexVersionOf(TensorInputGroup!.SelectedType);
else
OutputGroup!.SelectedType = TensorInputGroup!.SelectedType;
}