I wrote the cilf file and cpp file, but I can't import this file
I wrote the cilf file and cpp file, but I can't import this file, do I need to compile it?, how to link python and C++?
from third_party.nucleus.io.python import tfrecord_reader ImportError: cannot import name 'tfrecord_reader' from 'third_party.nucleus.io.python'
@pichuan does nucleus have support for building user-provided .clif extensions?
Thanks @rwgk for tagging me!
The Nucleus BUILD file for clif is here: https://github.com/google/nucleus/blob/v0.6.0/nucleus/util/python/BUILD
@one-matrix , if you're able to build Nucleus (or DeepVariant repo) before any changes, then, after you add your new files, and your own corresponding BUILD rules, you can try to build again.
Also note that the latest released Nucleus code is in https://github.com/google/deepvariant/tree/r1.6/third_party/nucleus . We used to make standalone Nucleus releases, but in recent years we focused more on making it as part of DeepVariant.
@pichuan thanks,but how can i compile the clif file? and What kind of extra files will generate if i compile the clif,There are very few document about clif. the error show that i cannot import the tfrecord_reader,But the path and file exist.
Hi @one-matrix , please take a look at https://github.com/google/deepvariant/issues/756#issuecomment-1865388872 . Hope that helps.