Sha256: f2f51698b6f8bdb86b5c713fde860defb09a82d239c88022c5120a0523e515d4
Contents?: true
Size: 467 Bytes
Versions: 4
Compression:
Stored size: 467 Bytes
Contents
require 'convolver' require 'narray' require 'benchmark' class ConvolverNNLayerBenchmark attr_reader :input, :weights, :thresholds def initialize @input = NArray.float(1024).random @weights = NArray.float(1024,256).random @thresholds = NArray.float(256).random end end Benchmark.bm do |x| source = ConvolverNNLayerBenchmark.new x.report('kilo') { 1000.times { Convolver.nn_run_layer( source.input, source.weights, source.thresholds ) } } end
Version data entries
4 entries across 4 versions & 1 rubygems