/usr/local/lib/python3.6/site-packages/transformers/onnx/__pycache__
NameSizeModeActions
config.cpython-36.pyc208370644editdlrm
convert.cpython-36.pyc128450644editdlrm
features.cpython-36.pyc102140644editdlrm
utils.cpython-36.pyc15240644editdlrm
__init__.cpython-36.pyc8760644editdlrm
__main__.cpython-36.pyc27020644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/transformers/onnx/__pycache__/utils.cpython-36.pyc (1524B)
3 øEgÔã@sXddlmZmZddlmZGdd„deƒZd eeeedœdd„Zeeedœd d „Zd S) é)Úc_floatÚsizeof)ÚEnumc@s"eZdZeZeedœdd„ƒZdS)ÚParameterFormat)ÚreturncCs t|jƒS)zf Number of byte required for this data type Returns: Integer > 0 )rÚvalue)Úself©r úA/usr/local/lib/python3.6/site-packages/transformers/onnx/utils.pyÚsizeszParameterFormat.sizeN)Ú__name__Ú __module__Ú __qualname__rZFloatÚpropertyÚintr r r r r rsr)Ú dimensionÚfixed_dimensionÚnum_token_to_addrcCs|dkr |}||8}|S)ze Args: dimension: fixed_dimension: num_token_to_add: Returns: rr )rrrr r r Ú compute_effective_axis_dimension!s r)Únum_parametersÚdtypercCs ||jS)a7 Compute the size taken by all the parameters in the given the storage format when serializing the model Args: num_parameters: Number of parameters to be saved dtype: The data format each parameter will be saved Returns: Size (in byte) taken to save all the parameters )r )rrr r r Ú"compute_serialized_parameters_size4s rN)r) ÚctypesrrÚenumrrrrrr r r r Ús