clif icon indicating copy to clipboard operation
clif copied to clipboard

I wrote the cilf file and cpp file, but I can't import this file

Open one-matrix opened this issue 2 years ago • 4 comments

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++?

image

from third_party.nucleus.io.python import tfrecord_reader ImportError: cannot import name 'tfrecord_reader' from 'third_party.nucleus.io.python'

one-matrix avatar Dec 20 '23 09:12 one-matrix

@pichuan does nucleus have support for building user-provided .clif extensions?

rwgk avatar Dec 20 '23 15:12 rwgk

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 avatar Dec 20 '23 18:12 pichuan

@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.

one-matrix avatar Dec 21 '23 01:12 one-matrix

Hi @one-matrix , please take a look at https://github.com/google/deepvariant/issues/756#issuecomment-1865388872 . Hope that helps.

pichuan avatar Dec 21 '23 02:12 pichuan