### Question:
Weights extends AbstractVariable<T> { public T data() { return data; } Weights(T data); @Override T apply(ComputationContext ctx); @Override Tensor<?> gradient(Variable<?> parent, ComputationContext ctx); T data(); @Override boolean requireGradient();  }### Answer:
@Test void inAndOutInT() { Matrix in = Matrix.fill(1, 2, 3); Matrix out = new Weights<>(in).data(); assertEquals(in, out); }