@@ -217,18 +217,6 @@ val ndarray :
217217 given values must fill the tensor's [value] node precisely; otherwise, the values will be looped
218218 over to populate the [value] node. *)
219219
220- val default_param_init :
221- (label :string list ->
222- ?input_dims:int list ->
223- ?output_dims:int list ->
224- ?input_axes:(string * int ) list ->
225- ?output_axes:(string * int ) list ->
226- ?deduced:Shape .deduce_within_shape ->
227- unit ->
228- t )
229- ref
230- (* * The default initialization operation for {!param} calls that do not pass a [t]. *)
231-
232220val fetch_param_init :
233221 fetch_op ->
234222 label :string list ->
@@ -239,7 +227,7 @@ val fetch_param_init :
239227 ?deduced : Shape .deduce_within_shape ->
240228 unit ->
241229 t
242- (* * Helper for {!param} wrappers or to set {!default_param_init} . *)
230+ (* * Helper for {!param} wrappers. *)
243231
244232val param :
245233 ?more_label : string list ->
@@ -248,7 +236,7 @@ val param :
248236 ?input_axes : (string * int ) list ->
249237 ?output_axes : (string * int ) list ->
250238 ?deduced : Shape .deduce_within_shape ->
251- ? t :
239+ t :
252240 (label :string list ->
253241 ?input_dims:int list ->
254242 ?output_dims:int list ->
@@ -261,10 +249,9 @@ val param :
261249 t
262250(* * For proper parameters, [t] should produce a tensor with no batch axes; input and output axes
263251 should by default be inferred; [grad_spec] should be [Require_grad]. [t]'s label is the passed
264- string, appended by [more_label] if any, other parameters are forwarded to [t]. If [t] is not
265- provided, {!default_param_init} is used. This function returns [t]'s result with the field
266- {!field:params} replaced by a singleton set containing that result, and it also updates the
267- memory modes. *)
252+ string, appended by [more_label] if any, other parameters are forwarded to [t]. This function
253+ returns [t]'s result with the field {!field:params} replaced by a singleton set containing that
254+ result, and it also updates the memory modes. *)
268255
269256val consume_forward_code : t -> comp
270257(* * A forward root is a tensor that is not (currently) used to compute another tensor.
0 commit comments