DQN-Trading icon indicating copy to clipboard operation
DQN-Trading copied to clipboard

Can't Train or Get Inference while Batch Size = 1

Open formidiable opened this issue 3 years ago • 2 comments

I searched a lot but couldn't find a proper way to fix this.

2mm_5mm_composed

I believe Batch Normalization cause the problem. Do you have any advice about it ?

formidiable avatar Jan 31 '22 16:01 formidiable

There is an explanation about my suspicion about encoder decoder and usage Batch Normalization in this link. ^

formidiable avatar Jan 31 '22 16:01 formidiable

I also got this error while training without batchnorm1d or train with layernorm.

_RuntimeError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::cat. This usually means that this function requires a non-empty list of Tensors. Available functions are [CPU, CUDA, QuantizedCPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].

formidiable avatar Feb 01 '22 12:02 formidiable