Google colab で RubyからGPU を使って行列計算する の方法でCumoをインストールします。(コマンド実行時間 約10分) ランタイムがGPU Noneの場合もインストール自体は成功したりするようなので注意が必要です。 Red Chainerを実行する 3層ニューラルネットワークによるMNISTの分類 以下Red chainerのサンプルを少し改変したものを実行してみます。 require 'chainer' include Chainer F = Functions L = Links Ext = Training::Extensions class MLP < Chain Linear = L::Connection::Linear R = F::Activation::Relu def initialize(n_units, n_out) super() init_