tensorflow / tensorflow/java

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

未关闭
#256 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
928
派生
227
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 README 中的 Maven 依赖示例开始,将其 classifier 的使用方式与 issue 中展示的 Windows 依赖进行比较。跟踪 ${javacpp.platform.extension} 预期在哪里定义,然后更新文档,明确说明定义该变量的依赖或所需的使用方式,并确保示例没有歧义。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。