Skip to content

Arithmtic on params #224

@mahyarsamani

Description

@mahyarsamani

I did a little check on how params are defined, I'm not sure if it is possible to do arithmetic operations on params, it would be nice if I could do this:

self._mem_size = '2GB'
self._cache_size = self._mem_size / 256

I think there are some use cases to this, for example in my gups test I need to break down some part of memory to smaller chunks, it will be nice if I could do it without converting _mem_size to int and converting _cache_size back to str.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions