Home
last modified time | relevance | path

Searched refs:sgsdd_ctx (Results 1 – 3 of 3) sorted by relevance

/honee/qfunctions/
H A Dsgs_dd_model.h37 …R void DataDrivenInference(const CeedScalar *inputs, CeedScalar *outputs, SgsDDContext sgsdd_ctx) { in DataDrivenInference() argument
38 const CeedInt num_neurons = sgsdd_ctx->num_neurons; in DataDrivenInference()
39 const CeedInt num_inputs = sgsdd_ctx->num_inputs; in DataDrivenInference()
40 const CeedInt num_outputs = sgsdd_ctx->num_outputs; in DataDrivenInference()
41 const CeedScalar alpha = sgsdd_ctx->alpha; in DataDrivenInference()
42 const CeedScalar *bias1 = &sgsdd_ctx->data[sgsdd_ctx->offsets.bias1]; in DataDrivenInference()
43 const CeedScalar *bias2 = &sgsdd_ctx->data[sgsdd_ctx->offsets.bias2]; in DataDrivenInference()
44 const CeedScalar *weight1 = &sgsdd_ctx->data[sgsdd_ctx->offsets.weight1]; in DataDrivenInference()
45 const CeedScalar *weight2 = &sgsdd_ctx->data[sgsdd_ctx->offsets.weight2]; in DataDrivenInference()
56 … const CeedScalar viscosity, CeedScalar kmsgs_stress[6], SgsDDContext sgsdd_ctx) { in ComputeSgsDD_Fused() argument
[all …]
H A Dsgs_dd_training.h32 const SGS_DDTrainingContext sgsdd_ctx = (SGS_DDTrainingContext)ctx; in ComputeSGS_DDAnisotropicTrainingDataNodal() local
33 const NewtonianIGProperties gas = sgsdd_ctx->newt_ctx.gas; in ComputeSGS_DDAnisotropicTrainingDataNodal()
/honee/problems/
H A Dsgs_dd_model.c595 SgsDDContext sgsdd_ctx; in SgsDDContextFill() local
611 …sgsdd_temp->total_bytes = sizeof(*sgsdd_ctx) + total_num_scalars * sizeof(sgsdd_ctx->data[… in SgsDDContextFill()
612 PetscCall(PetscMalloc(sgsdd_temp->total_bytes, &sgsdd_ctx)); in SgsDDContextFill()
613 *sgsdd_ctx = *sgsdd_temp; in SgsDDContextFill()
618 …PetscCall(PhastaDatFileReadToArrayReal(comm, file_path, &sgsdd_ctx->data[sgsdd_ctx->offsets.bias1]… in SgsDDContextFill()
620 …PetscCall(PhastaDatFileReadToArrayReal(comm, file_path, &sgsdd_ctx->data[sgsdd_ctx->offsets.bias2]… in SgsDDContextFill()
622 …PetscCall(PhastaDatFileReadToArrayReal(comm, file_path, &sgsdd_ctx->data[sgsdd_ctx->offsets.out_sc… in SgsDDContextFill()
628 …PetscCall(TransposeMatrix(temp, &sgsdd_ctx->data[sgsdd_ctx->offsets.weight1], num_inputs, num_neur… in SgsDDContextFill()
635 …PetscCall(TransposeMatrix(temp, &sgsdd_ctx->data[sgsdd_ctx->offsets.weight2], num_neurons, num_out… in SgsDDContextFill()
640 *psgsdd_ctx = sgsdd_ctx; in SgsDDContextFill()
[all …]