Hong Zhu
Hong Zhu
# trainer/pretrain.py ```python class BERTTrainer: def __init__(self, ...): ... # Using Negative Log Likelihood Loss function for predicting the masked_token self.criterion = nn.NLLLoss(ignore_index=0) ... ``` I cannot understand why `ignore...
对于这样一条文献信息: `Lievense, L. C., Verbeek, M. A. M., Taekema, T., Meerdink, G., & Riet, K. V. (1992). Modelling the inactivation of Lactobacillus plantarum during a drying process. Chemical Engineering Science,...
**Summary** There are some typos in the [SPH documentation](https://docs.lammps.org/PDF/SPH_LAMMPS_userguide.pdf). In case users new to LAMMPS-SPH may be confused and misled, the errata are listed below. Further contributions are welcome. **Details**...
This post incoporates two bugs and two suggestions. # Bug of particle shifting In `void ComputeRHEOVShift::correct_type_interface()`, the color gradient (`cgradt`) is calculated to correct the shifting velocity on the interface...
I often run the network for 1 second before a real simulation to make the neurons reach a steady state. When I start the real simulation, I want to reset...
The normalization coefficient for 1D-QuinticSpline is $1/(60*h)$ rather than $1/(120*h)$. Validation: ```python def quintic_spline(r, cut, dimension=3): h = cut / 3 q = r / h w = np.where(q <...
`tests_sycl` is to be compiled regardless of `SPHINXSYS_USE_SYCL` in the master branch (see `tests/CMakeLists.txt`): ```cmake ADD_SUBDIRECTORY(tests_sycl) ``` which will lead to compilation error if users do not install related dependencies....
Following #965 1. Change the parameter `SimTK::UnitVec3` to `Vecd` during constructing the cylinder in the source code. 2. Change `axis` to `SimTK::UnitVec3(axis[0], axis[1], axis[2])` in the body of `TriangleMeshShapeCylinder::TriangleMeshShapeCylinder`. 3....
This is not a bug, but a little suggestion. When constructing a cylinder using `TriangleMeshShapeCylinder`, users should provide two vectors, one axis whose type is `SimTK::UnitVec3` and one translation whose...
I have developed a GDB extension for SPHinXsys in `tools/`. It supports a structured and consice format of SPHinXsys objects, e.g., `ParticleVariables` objects. In the original version, the `ParticleVariables` object...