having a trainable parameter in the reference solution #1746
Unanswered
Burhan3228
asked this question in
Q&A
Replies: 1 comment
-
Reference solution cannot have unknown variables. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all, in the code below, i have the reference solution as:
` def fun_initnewTF(x):
Here, US_trainable is my trainable parameter , in other word the reference solution itself depends on the trainable parameter. When i use it the data as:
data = dde.data.TimePDE( geomtime, pde, [bc,ic,observe_y_t_vals_except_inits], num_domain=1024, num_boundary=16, num_initial=256, solution=reference_solutionTF, anchors=combine_except_inits, train_distribution="Sobol", num_test=10000 )
Apparently, it doesn't accept the reference solution in tensorflow environment and it asks its numpy version. Here is the problem: I d like to have US_trainable to be trained during training and the reference solution therefore also need to be adjusted accordingly during training. how can i achieve it? thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions