# tensorplay.typename

Source: https://www.tensorplay.cn/docs/generated/tensorplay.typename.html

# tensorplay.typename

tensorplay.typename(obj: [Any](https://docs.python.org/3/library/typing.html#typing.Any), /) &#x2192; [str](https://docs.python.org/3/library/stdtypes.html#str)[[source]](../_modules/tensorplay.html#typename)

String representation of the type of an object.

This function returns a fully qualified string representation of an object’s type.
:param obj: The object whose type to represent
:type obj: object

Returns:

the type of the object o

Return type:

[str](https://docs.python.org/3/library/stdtypes.html#str)

Example

```
>>> x = tensorplay.tensor([1, 2, 3])
>>> tensorplay.typename(x)
'tensorplay.LongTensor'
>>> tensorplay.typename(tensorplay.nn.Parameter)
'tensorplay.nn.parameter.Parameter'
```
