Skip to content

Commit 1ffa8cc

Browse files
Merge pull request #632 from SciML/ChrisRackauckas-patch-3
Use the parameterless type for doing adapting
2 parents f90e100 + 1d0addc commit 1ffa8cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ steps:
88
agents:
99
queue: "juliagpu"
1010
cuda: "*"
11-
timeout_in_minutes: 120
11+
timeout_in_minutes: 240
1212
# Don't run Buildkite if the commit message includes the text [skip tests]
1313
if: build.message !~ /\[skip tests\]/
1414

src/training_strategies.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function merge_strategy_with_loss_function(pinnrep::PINNRepresentation,
2929

3030
# the points in the domain and on the boundary
3131
pde_train_sets, bcs_train_sets = train_sets
32-
pde_train_sets = adapt.(typeof(flat_init_params), pde_train_sets)
33-
bcs_train_sets = adapt.(typeof(flat_init_params), bcs_train_sets)
32+
pde_train_sets = adapt.(parameterless_type(ComponentArrays.getdata(flat_init_params)), pde_train_sets)
33+
bcs_train_sets = adapt.(parameterless_type(ComponentArrays.getdata(flat_init_params)), bcs_train_sets)
3434
pde_loss_functions = [get_loss_function(_loss, _set, eltypeθ, strategy)
3535
for (_loss, _set) in zip(datafree_pde_loss_function,
3636
pde_train_sets)]
@@ -152,7 +152,7 @@ end
152152
minibatch)
153153
lb, ub = bound
154154
set = QuasiMonteCarlo.generate_design_matrices(points, lb, ub, sampling_alg, minibatch)
155-
set = map(s -> adapt(eltypeθ, s), set)
155+
set = map(s -> adapt(parameterless_type(eltypeθ), s), set)
156156
return set
157157
end
158158

0 commit comments

Comments
 (0)