Beispiel #1
0
        public RequantizeLayerArgument Convert(Requantize layer, ConvertContext context)
        {
            var ir = context.Quantization.Distributions[layer.Input.Connection.From].Global;
            var or = context.Quantization.Distributions[layer.Output].Global;

            return(new RequantizeLayerArgument
            {
                Count = (uint)layer.Input.Dimensions.GetSize(),
                Table = Quantizer.GetRequantizeTable(ir, or)
            });
        }