more phiflow 3.4 updates for HEAT SIP
This commit is contained in:
parent
1396482270
commit
45d2b6529e
@ -347,7 +347,7 @@
|
||||
"def loss_function(net, x_gt: CenteredGrid, sip: bool):\n",
|
||||
" y_target = diffuse.fourier(x_gt, 8., 1)\n",
|
||||
" with math.precision(32):\n",
|
||||
" prediction = field.native_call(net, field.to_float(y_target)).vector[0]\n",
|
||||
" prediction = field.native_call(net, field.to_float(y_target))\n",
|
||||
" prediction += field.mean(x_gt) - field.mean(prediction)\n",
|
||||
" x = field.stop_gradient(prediction)\n",
|
||||
" if sip:\n",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user