Open zlynna opened 10 months ago
在复现论文Physics-informed neural operator for learning part的过程中, Fourier Neural Operator 网络在原pytorch代码环境中涉及到fft的网络训练参数的数据类型为torch.cfloat,paddle.create_parameter不支持cfloat,即complex64数据类型,请问是否可以在paddle中实现对该数据类型的支持?
No response
你好,你可以直接传入dtype="complex64"
weight = paddle.randn([32, 32, 8, 8]).astype("complex64") weight = paddle.create_parameter(weight.shape, weight.dtype, attr=paddle.nn.initializer.Assign(weight))
需求描述 Feature Description
在复现论文Physics-informed neural operator for learning part的过程中, Fourier Neural Operator 网络在原pytorch代码环境中涉及到fft的网络训练参数的数据类型为torch.cfloat,paddle.create_parameter不支持cfloat,即complex64数据类型,请问是否可以在paddle中实现对该数据类型的支持?
替代实现 Alternatives
No response