Method: TensorFlow::Context.finalize

Defined in:
lib/tensorflow/context.rb

.finalize(pointer) ⇒ Object



12
13
14
15
# File 'lib/tensorflow/context.rb', line 12

def self.finalize(pointer)
  # must use proc instead of stabby lambda
  proc { FFI.TFE_DeleteContext(pointer) }
end