tensorflow / tensorflow/java

Maven complains that ${javacpp.platform.extension} is undefined

Đang mở
#256 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Java
Star
928
Fork
227
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows Version 10.0.19042.870
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary):
  • TensorFlow version: 0.3.1
  • Python version: N/A
  • Installed using virtualenv? pip? conda?: N/A
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): N/A
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A

Describe the problem

The readme file references the following Maven code:

<dependency>
  <groupId>org.tensorflow</groupId>
  <artifactId>tensorflow-core-api</artifactId>
  <version>0.3.0</version>
  <classifier>linux-x86_64${javacpp.platform.extension}</classifier>
</dependency>

but it's not clear who defines ${javacpp.platform.extension}

When I add the following dependencies to my code, the build fails complaining that ${javacpp.platform.extension} is undefined:

			<dependency>
				<groupId>org.tensorflow</groupId>
				<artifactId>tensorflow-core-platform</artifactId>
				<version>${tensorflow.version}</version>
			</dependency>
			<dependency>
				<groupId>org.tensorflow</groupId>
				<artifactId>tensorflow-core-api</artifactId>
				<classifier>windows-x86_64${javacpp.platform.extension}</classifier>
				<version>${tensorflow.version}</version>
			</dependency>
			<dependency>
				<groupId>org.tensorflow</groupId>
				<artifactId>tensorflow-core-platform-gpu</artifactId>
				<version>${tensorflow.version}</version>
			</dependency>

Can you please clarify who defines this variable and what dependency I need to add to get this definition? Thanks in advance.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với ví dụ dependency Maven trong README và so sánh cách sử dụng classifier của ví dụ này với các dependency Windows được hiển thị trong issue. Truy vết nơi ${javacpp.platform.extension} được mong đợi là sẽ được định nghĩa, sau đó cập nhật tài liệu để dependency định nghĩa nó hoặc cách sử dụng bắt buộc được nêu rõ và ví dụ không còn mơ hồ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.