tiny-cuda-nn icon indicating copy to clipboard operation
tiny-cuda-nn copied to clipboard

Network with 1 layer possible?

Open acse-pms122 opened this issue 1 year ago • 1 comments

Hi, is it possible to create a tinycuda neural net with simply one dense layer. I get an error when I set n_hidden_layers to 0. But is there some kind of workaround for this?

Thanks in advance!

acse-pms122 avatar Jul 10 '23 22:07 acse-pms122

With CutlassMLP this works for me:

import tinycudann as tcnn

config = {
    "otype": "CutlassMLP",
    "activation": "None",
    "output_activation": "LeakyReLU",
    "n_neurons": 0,
    "n_hidden_layers": 0,
}
proj = tcnn.Network(2, 256, proj_config)

amitabe avatar Sep 02 '23 16:09 amitabe