Method: Tensorflow::Keras::Preprocessing::Image.img_to_array

Defined in:
lib/tensorflow/keras/preprocessing/image.rb

.img_to_array(img) ⇒ Object



15
16
17
# File 'lib/tensorflow/keras/preprocessing/image.rb', line 15

def img_to_array(img)
  Numo::SFloat.cast(img.get_pixels)
end