janestreet / janestreet/torch

Error: Library "torch_wrapper_types" is private, it cannot be a dependency of a public library. You need to give "torch_wrapper_types" a public name.

Open
#18 2 comments 0 reactions 0 assignees View on GitHub
forwarded-to-js-devs
Dominant language
OCaml
Stars
162
Forks
14
PR merge metrics
No merged PRs in 30d

Description

```bash
# dune build examples/llama2/llama2.exe
File "src/wrapper/dune", line 20, characters 49-68:
20 | (libraries ctypes.foreign ctypes torch_bindings torch_wrapper_types)
^^^^^^^^^^^^^^^^^^^
Error: Library "torch_wrapper_types" is private, it cannot be a dependency of
a public library. You need to give "torch_wrapper_types" a public name.
```

Contributor guide

Open the contributing guide

Research direction

Start with the library declarations around line 20 of src/wrapper/dune and reproduce the failure with dune build examples/llama2/llama2.exe. Check the visibility of torch_wrapper_types and make the dependency acceptable to the public library; done when that build completes without the private-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.