torrvision / crayon

A language-agnostic interface to TensorBoard
MIT License
779 stars 59 forks source link

attempt to index field 'scalar_steps' (a nil value) when using add_scalar_dict #39

Open twmht opened 7 years ago

twmht commented 7 years ago

Hi,

I tried add_scalar_dict as following

local foo = cc:create_experiment("foo")
local d = {}
d['bar'] = 3
d['hoo'] = 4
foo:add_scalar_dict(d)

but got the errors

attempt to index field 'scalar_steps' (a nil value) 

not sure how to use that.

thanks