Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 8181710722928004096
This apply will demonstrate the key's JSON serialization, and verify deserialization integrity.
SerializationTest.java:99 executed in 0.00 seconds (0.000 gc):
final JsonObject json = layer.getJson().getAsJsonObject();
@Nonnull final Layer echo = Layer.fromJson(json);
if (layer == echo) {
echo.freeRef();
throw new AssertionError("Serialization did not copy");
}
if (!layer.equals(echo)) {
echo.freeRef();
throw new AssertionError("Serialization not equal");
}
echo.freeRef();
return json;
Returns
{
"class": "com.simiacryptus.mindseye.layers.cudnn.ImgCropLayer",
"id": "6974dab7-b235-4d75-8afa-221b71104371",
"isFrozen": false,
"name": "ImgCropLayer",
"baseValue": 0.0,
"sizeY": 2,
"sizeX": 2,
"roundUp": false,
"horizontalAlign": "Center",
"verticalAlign": "Left",
"precision": "Double"
}
Wrote Model to ImgCropLayer_jsonTest.json; 314 characters
LayerTests.java:425 executed in 0.00 seconds (0.000 gc):
throwException(exceptions.addRef());
class | result |
---|---|
com.simiacryptus.mindseye.test.unit.SerializationTest | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.521",
"gc_time": "0.187"
},
"created_on": 1586737034456,
"file_name": "jsonTest",
"report": {
"simpleName": "Top",
"canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgCropLayerTest.Top",
"link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/test/java/com/simiacryptus/mindseye/layers/cudnn/ImgCropLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/cudnn/ImgCropLayer/Top/jsonTest/202004131713",
"id": "36e092fc-671e-474f-9196-8c4c8ac6e3b9",
"report_type": "Components",
"display_name": "JSON Serialization",
"target": {
"simpleName": "ImgCropLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgCropLayer",
"link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/main/java/com/simiacryptus/mindseye/layers/cudnn/ImgCropLayer.java",
"javaDoc": ""
}
}