Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

NativeResource Management in Scala (#12647) #12883

Merged
merged 1 commit into from
Oct 19, 2018

Commits on Oct 19, 2018

  1. NativeResource Management in Scala (apache#12647)

    * add Generic MXNetHandle trait and MXNetHandlePhantomRef class that will be used by all MXNetObjects
    
    * Generic Handle with AutoCloseable
    
    * add NativeResource and NativeResourceManager with Periodic GC calling
    
    * use NativeResource trait in NDArray, Symbol and Executor
    
    * add run train mnist script
    
    * create a Generic ResourceScope that can collect all NativeResources to dispose at the end
    
    * modify NativeResource and ResourceScope, extend NativeResource in NDArray, Symbol and Executor
    
    * remove GCExecutor
    
    * deRegister PhantomReferences by when calling dispose()
    
    * add Finalizer(temporary) to NativeResource
    
    * refactor NativeResource.dispose() method
    
    * update NativeResource/add Unit Test for NativeResource
    
    * updates to NativeResource/NativeResourceRef and unit tests to NativeResource
    
    * remove redundant code added because of the object equality that was needed
    
    * add ResourceScope
    
    * Fix NativeResource to not remove from Scope, add Unit Tests to ResourceScope
    
    * cleanup log/print debug statements
    
    * use TreeSet inplace of ArrayBuffer to speedup removal of resources from ResourceScope
    Fix Executor dispose and make KVStore a NativeResource
    
    * fix segfault that was happening because of NDArray creation on the fly in Optimizer
    
    * Add comments for dispose(param:Boolean)
    nswamy authored and Ayres committed Oct 19, 2018
    Configuration menu
    Copy the full SHA
    e53864b View commit details
    Browse the repository at this point in the history