I extract the self_ref_v0.cu and SRWMlayer from source code, and incorporate them into my own model. I get
ImportError: cannot import name 'self_ref' from 'xx.layers'
My package structure as follow:
layers
__init__.py
self_ref_v0.cu
self_ref_layer.py
self_ref_v0.cu is the file extracted from this repo
self_ref_layer.py is the SRWMlayer package:
from . import self_ref_v0
class SWRMlayer(...):
...
I extract the
self_ref_v0.cuandSRWMlayerfrom source code, and incorporate them into my own model. I getMy package structure as follow:
self_ref_v0.cuis the file extracted from this repoself_ref_layer.pyis theSRWMlayerpackage: