-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
64 lines (53 loc) · 2.21 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
ext {
dl4j_use_cuda = false
dl4j_use_avx2 = false
dl4j_version = "1.0.0-beta7"
springBootVersion = '2.4.1.RELEASE'
cuda_version = "10.0"
platform = 'win'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'org.springframework.boot' version '2.4.1'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group 'org.pp'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation('org.springframework.boot:spring-boot-starter-web')
implementation("org.springframework.boot:spring-boot-starter-logging")
implementation "org.deeplearning4j:deeplearning4j-core:${dl4j_version}"
// https://mvnrepository.com/artifact/org.deeplearning4j/deeplearning4j-zoo
implementation group: 'org.deeplearning4j', name: 'deeplearning4j-zoo', version: '1.0.0-beta7'
compileOnly('org.projectlombok:lombok:1.18.12')
annotationProcessor('org.projectlombok:lombok:1.18.12')
// https://mvnrepository.com/artifact/org.jfree/jfreechart
implementation group: 'org.jfree', name: 'jfreechart', version: '1.0.19'
if (dl4j_use_cuda) {
//implementation 'org.bytedeco.javacpp-presets:cuda:10.0-7.4-1.4.4:windows-x86_64-redist'
implementation "org.deeplearning4j:deeplearning4j-cuda-${cuda_version}:${dl4j_version}"
implementation "org.nd4j:nd4j-cuda-${cuda_version}:${dl4j_version}"
implementation "org.nd4j:nd4j-cuda-${cuda_version}-platform:${dl4j_version}"
} else {
if (dl4j_use_avx2 && (platform == 'win')){
implementation "org.nd4j:nd4j-native:${dl4j_version}"
implementation "org.nd4j:nd4j-native:${dl4j_version}:windows-x86_64-avx2"
}else
implementation "org.nd4j:nd4j-native-platform:${dl4j_version}"
}
implementation group: 'org.deeplearning4j', name: 'arbiter-ui', version: "${dl4j_version}"
implementation group: 'org.datavec', name: 'datavec-data-codec', version: "${dl4j_version}"
}