remove these for now

This commit is contained in:
Mike J Innes 2017-09-06 14:03:12 -04:00
parent 4c12d18033
commit 2c8b7bc64b

View File

@ -2,12 +2,6 @@
initn(dims...) = randn(dims...)/100
unsqueeze(xs, dim = 1) = reshape(xs, (size(xs)[1:dim-1]..., 1, size(xs)[dim:end]...))
squeeze(xs, dim = 1) = Base.squeeze(xs, dim)
stack(xs, dim = 1) = cat(dim, unsqueeze.(xs, dim)...)
unstack(xs, dim = 1) = [slicedim(xs, dim, i) for i = 1:size(xs, dim)]
"""
onehot('b', ['a', 'b', 'c', 'd']) => [false, true, false, false]