@@ -160,15 +160,23 @@ def get_sel(self) -> list[int]:
160160 return self .sel
161161
162162 def get_buffer_type_map (self ) -> paddle .Tensor :
163- """Get the neighbor selection."""
163+ """
164+ Return the type map as a buffer-style Tensor for JIT saving.
165+
166+ The original type map (e.g., ['Ni', 'O']) is first joined into a single space-separated string
167+ (e.g., "Ni O"). Each character in this string is then converted to its ASCII code using `ord()`,
168+ and the resulting integer sequence is stored as a 1D paddle.Tensor of dtype int.
169+
170+ This format allows the type map to be serialized as a raw byte buffer during JIT model saving.
171+ """
164172 return self .buffer_type_map
165173
166174 def get_buffer_rcut (self ) -> paddle .Tensor :
167- """Get the cut-off radius."""
175+ """Get the cut-off radius as a buffer-style Tensor ."""
168176 return self .descriptor .get_buffer_rcut ()
169177
170178 def get_buffer_sel (self ) -> paddle .Tensor :
171- """Get the neighbor selection."""
179+ """Get the neighbor selection as a buffer-style Tensor ."""
172180 return self .descriptor .get_buffer_sel ()
173181
174182 def set_case_embd (self , case_idx : int ) -> None :
@@ -400,7 +408,7 @@ def get_dim_fparam(self) -> int:
400408 return self .fitting_net .get_dim_fparam ()
401409
402410 def get_buffer_dim_fparam (self ) -> paddle .Tensor :
403- """Get the number (dimension) of frame parameters of this atomic model."""
411+ """Get the number (dimension) of frame parameters of this atomic model as a buffer-style Tensor ."""
404412 return self .fitting_net .get_buffer_dim_fparam ()
405413
406414 def has_default_fparam (self ) -> bool :
@@ -412,7 +420,7 @@ def get_dim_aparam(self) -> int:
412420 return self .fitting_net .get_dim_aparam ()
413421
414422 def get_buffer_dim_aparam (self ) -> paddle .Tensor :
415- """Get the number (dimension) of atomic parameters of this atomic model."""
423+ """Get the number (dimension) of atomic parameters of this atomic model as a buffer-style Tensor ."""
416424 return self .fitting_net .get_buffer_dim_aparam ()
417425
418426 def get_sel_type (self ) -> list [int ]:
0 commit comments