GRUCell#
- classtorch.ao.nn.quantized.dynamic.GRUCell(input_size,hidden_size,bias=True,dtype=torch.qint8)[source]#
A gated recurrent unit (GRU) cell
A dynamic quantized GRUCell module with floating point tensor as inputs and outputs.Weights are quantized to 8 bits. We adopt the same interface astorch.nn.GRUCell,please seehttps://pytorch.org/docs/stable/nn.html#torch.nn.GRUCell for documentation.
Examples:
>>>rnn=nn.GRUCell(10,20)>>>input=torch.randn(6,3,10)>>>hx=torch.randn(3,20)>>>output=[]>>>foriinrange(6):...hx=rnn(input[i],hx)...output.append(hx)