Skip to content

Commit a3ccf61

Browse files
committed
Add JavDoc to new method l1_l2
1 parent b5c7c78 commit a3ccf61

File tree

1 file changed

+7
-0
lines changed
  • tensorflow-framework/src/main/java/org/tensorflow/framework/regularizers

1 file changed

+7
-0
lines changed

tensorflow-framework/src/main/java/org/tensorflow/framework/regularizers/L1L2.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ public L1L2(Ops tf, Float l1, Float l2) {
8282
}
8383
}
8484

85+
/**
86+
* Creates an L1L2 instance using {@link #DEFAULT_REGULARIZATION_PENALTY} for the l1 and l2
87+
* values.
88+
*
89+
* @param tf the TensorFlow Ops
90+
* @return a L1L2 instance using {@link #DEFAULT_REGULARIZATION_PENALTY} for the l1 and l2 values.
91+
*/
8592
public static L1L2 l1_l2(Ops tf) {
8693
return new L1L2(tf, DEFAULT_REGULARIZATION_PENALTY, DEFAULT_REGULARIZATION_PENALTY);
8794
}

0 commit comments

Comments
 (0)