zdevito/pytorch

Sort through and regularize the list of special-replacements for constants

zdevito opened this issue · 0 comments

Currently looks like this but is growing as compiler errors are fixed.

    ('THPDefaultGenerator->cdata','dynamic_cast<${Processor}Generator*>(context->defaultGenerator(processor())->generator'),
    ('__storage_size.get\\(\\)', 'THStorageView::make(static_cast<int64_t>(storage.size()))')