File tree Expand file tree Collapse file tree
tensorflow-framework/src/test/java/org/tensorflow/framework/initializers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626/** Test the He initializer */
2727public class HeTest {
28- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
29-
3028 private static final long SEED = 1000L ;
31-
29+ private final TestSession . Mode [] tfModes = { TestSession . Mode . EAGER , TestSession . Mode . GRAPH };
3230 int counter ;
3331
3432 public HeTest () {}
Original file line number Diff line number Diff line change 2626/** Test the LeCun initializer */
2727public class LeCunTest {
2828
29- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
30-
3129 private static final long SEED = 1000L ;
30+ private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
3231
3332 public LeCunTest () {}
3433
Original file line number Diff line number Diff line change 2929/** Test the Orthogonal initializer */
3030public class OrthogonalTest {
3131
32- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
33-
3432 private static final long SEED = 1000L ;
3533 private static final double GAIN_VALUE = 1.0 ;
34+ private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
3635
3736 public OrthogonalTest () {}
3837
Original file line number Diff line number Diff line change 2525/** Test the RandomNormal initializer */
2626public class RandomNormalTest {
2727
28- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
29-
3028 private static final long SEED = 1000L ;
3129 private static final double MEAN_VALUE = 0.0 ;
3230 private static final double STDDEV_VALUE = 3.0 ;
31+ private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
3332
3433 public RandomNormalTest () {}
3534
Original file line number Diff line number Diff line change 2626/** Test the RandomUniform initializer */
2727public class RandomUniformTest {
2828
29- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
30-
3129 private static final long SEED = 1000L ;
3230 private static final double MIN_VALUE = 0.0 ;
3331 private static final double MAX_VALUE = 10.0 ;
32+ private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
3433
3534 public RandomUniformTest () {}
3635
Original file line number Diff line number Diff line change 2525/** Test the TruncatedNormal initializer */
2626public class TruncatedNormalTest {
2727
28- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
29-
3028 private static final long SEED = 1000L ;
3129 private static final double MEAN_VALUE = 0.0 ;
3230 private static final double STDDEV_VALUE = 3.0 ;
31+ private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
3332
3433 public TruncatedNormalTest () {}
3534
Original file line number Diff line number Diff line change 2525/** Test the VarianceScaling initializer */
2626public class VarianceScalingTest {
2727
28- private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
29-
3028 private static final long SEED = 1000L ;
29+ private final TestSession .Mode [] tfModes = {TestSession .Mode .EAGER , TestSession .Mode .GRAPH };
3130
3231 public VarianceScalingTest () {}
3332
You can’t perform that action at this time.
0 commit comments