{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/issues/635","repository_url":"https://api.github.com/repos/deeplearning4j/dl4j-examples","labels_url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/issues/635/comments","events_url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/issues/635/events","html_url":"https://github.com/deeplearning4j/dl4j-examples/issues/635","id":295609812,"node_id":"MDU6SXNzdWUyOTU2MDk4MTI=","number":635,"title":"Exception in thread \"main\" java.lang.OutOfMemoryError: Cannot allocate new FloatPointer(138357544): totalBytes = 527M, physicalBytes = 762M","user":{"login":"Como93","id":11940527,"node_id":"MDQ6VXNlcjExOTQwNTI3","avatar_url":"https://avatars1.githubusercontent.com/u/11940527?v=4","gravatar_id":"","url":"https://api.github.com/users/Como93","html_url":"https://github.com/Como93","followers_url":"https://api.github.com/users/Como93/followers","following_url":"https://api.github.com/users/Como93/following{/other_user}","gists_url":"https://api.github.com/users/Como93/gists{/gist_id}","starred_url":"https://api.github.com/users/Como93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Como93/subscriptions","organizations_url":"https://api.github.com/users/Como93/orgs","repos_url":"https://api.github.com/users/Como93/repos","events_url":"https://api.github.com/users/Como93/events{/privacy}","received_events_url":"https://api.github.com/users/Como93/received_events","type":"User","site_admin":false},"labels":[{"id":252060751,"node_id":"MDU6TGFiZWwyNTIwNjA3NTE=","url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-08T17:59:11Z","updated_at":"2018-10-17T00:42:14Z","closed_at":"2018-02-08T18:01:12Z","author_association":"NONE","body":"Hi everyone,\r\n\r\nMy problem is when I run the class \"EditLastLayerOthersFrozen.java\" it shows this error:\r\n\r\nException in thread \"main\" java.lang.OutOfMemoryError: Cannot allocate new FloatPointer(138357544): totalBytes = 527M, physicalBytes = 762M\r\n\tat org.bytedeco.javacpp.FloatPointer.<init>(FloatPointer.java:76)\r\n\tat org.nd4j.linalg.api.buffer.BaseDataBuffer.pointerIndexerByGlobalType(BaseDataBuffer.java:1035)\r\n\tat org.nd4j.linalg.api.buffer.BaseDataBuffer.read(BaseDataBuffer.java:1303)\r\n\tat org.nd4j.linalg.compression.CompressedDataBuffer.readUnknown(CompressedDataBuffer.java:80)\r\n\tat org.nd4j.linalg.factory.Nd4j.read(Nd4j.java:2554)\r\n\tat org.deeplearning4j.util.ModelSerializer.restoreComputationGraph(ModelSerializer.java:411)\r\n\tat org.deeplearning4j.util.ModelSerializer.restoreComputationGraph(ModelSerializer.java:362)\r\n\tat org.deeplearning4j.zoo.ZooModel.initPretrained(ZooModel.java:88)\r\n\tat org.deeplearning4j.zoo.ZooModel.initPretrained(ZooModel.java:41)\r\n\tat org.deeplearning4j.examples.transferlearning.vgg16.dataHelpers.FeaturizedPreSave.main(FeaturizedPreSave.java:36)\r\nCaused by: java.lang.OutOfMemoryError: Failed to allocate memory within limits: totalBytes = 527M + 527M > maxBytes = 862M\r\n\tat org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:572)\r\n\tat org.bytedeco.javacpp.Pointer.init(Pointer.java:121)\r\n\tat org.bytedeco.javacpp.FloatPointer.allocateArray(Native Method)\r\n\tat org.bytedeco.javacpp.FloatPointer.<init>(FloatPointer.java:68)\r\n\t... 9 more\r\n\r\nSo, I tried to update the memory size of IntelliJ on Help -> Edit Custom Vm Options but it doesn't work.\r\n\r\nHow can I fix this? \r\n\r\nThank you. "},"comment":{"url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/issues/comments/430449540","html_url":"https://github.com/deeplearning4j/dl4j-examples/issues/635#issuecomment-430449540","issue_url":"https://api.github.com/repos/deeplearning4j/dl4j-examples/issues/635","id":430449540,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDQ0OTU0MA==","user":{"login":"saudet","id":3328023,"node_id":"MDQ6VXNlcjMzMjgwMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/3328023?v=4","gravatar_id":"","url":"https://api.github.com/users/saudet","html_url":"https://github.com/saudet","followers_url":"https://api.github.com/users/saudet/followers","following_url":"https://api.github.com/users/saudet/following{/other_user}","gists_url":"https://api.github.com/users/saudet/gists{/gist_id}","starred_url":"https://api.github.com/users/saudet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saudet/subscriptions","organizations_url":"https://api.github.com/users/saudet/orgs","repos_url":"https://api.github.com/users/saudet/repos","events_url":"https://api.github.com/users/saudet/events{/privacy}","received_events_url":"https://api.github.com/users/saudet/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T00:42:14Z","updated_at":"2018-10-17T00:42:14Z","author_association":"MEMBER","body":"For Android, we can use the largeHeap setting to increase available memory:\r\nhttps://developer.android.com/guide/topics/manifest/application-element#largeHeap"}}
{"actor":{"display_login":"saudet"}}