-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
meta.yaml
283 lines (271 loc) · 7.69 KB
/
meta.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
{% set version = "2.4.1" %}
package:
name: tensorflow-split
version: {{ version }}
source:
url: https://github.com/tensorflow/tensorflow/archive/v{{ version }}.tar.gz
sha256: f681331f8fc0800883761c7709d13cda11942d4ad5ff9f44ad855e9dc78387e0
patches:
- patches/0001-relax-tolerence-in-special_math_test.patch
- patches/0002-skip-read-only-debugger_cli_common-test.patch
- patches/0003-relax-precision-in-matrix_log_op_test.patch
# requires setting GRPCIO_VERSION in build script
- patches/0004-loosen-requirements.patch
- patches/0005-osx-arm64.patch # [osx and arm64]
build:
number: 0
skip: true # [win]
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy 1.19.* # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
# see https://github.com/tensorflow/tensorflow/blob/v{{ version }}/.bazelversion
- bazel 3.1.0 # [not osx]
# For osx-arm64 cross-compilation to work, we need bazel>=4.1
- bazel # [osx]
- nasm
- sed
host:
# conda build requirements
- python
- pip
- zlib
- libpng
- libcurl
- curl # [win]
- unzip # [not win]
- zip # [not win]
- m2-unzip # [win]
- m2-zip # [win]
- openjdk >=8
- nsync
# TF_SYSTEM_LIBS
- astor >=0.7.1
- cython >=0.28.4
- dill >=0.3.1.1
- giflib
- grpc-cpp
- flatbuffers
- icu
- jpeg
- libpng
- libprotobuf
- openssl
- pybind11
- sqlite
- snappy
- zlib
# requirements specified by the package itself, see
# github.com/tensorflow/tensorflow/blob/v{{ version }}/tensorflow/tools/pip_package/setup.py
- absl-py >=0.10.0
- astunparse >=1.6.3
- python-flatbuffers 1.12.*
- google-pasta >=0.2
- h5py >=2.10
- keras-preprocessing >=1.1.2
- numpy 1.19.*
- opt_einsum 3.3.0.*
- protobuf >=3.9.2
- six >=1.15.0
- termcolor >=1.1.0
- typing_extensions >=3.7.4
- wheel >=0.35
- wrapt >=1.11.1
# upstream wants exact pin for gast
- gast ==0.3.3
# TF-API needs to move in sync
- tensorboard >=2.4.0,<2.5
- tensorflow-estimator >=2.4.0,<2.5
outputs:
- name: tensorflow-base
script: build_pkg.sh # [not win]
script: build_pkg.bat # [win]
build:
entry_points:
- toco_from_protos = tensorflow.lite.toco.python.toco_from_protos:main
- tflite_convert = tensorflow.lite.python.tflite_convert:main
- toco = tensorflow.lite.python.tflite_convert:main
- saved_model_cli = tensorflow.python.tools.saved_model_cli:main
# The tensorboard package adds this entry point.
# - tensorboard = tensorboard.main:run_main
- tf_upgrade_v2 = tensorflow.tools.compatibility.tf_upgrade_v2_main:main
- estimator_ckpt_converter = tensorflow_estimator.python.estimator.tools.checkpoint_converter:main
requirements:
# build requirements needs to pick up the compiler run_exports
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
# conda build requirements
- python
- pip
# TF_SYSTEM_LIBS
- astor >=0.7.1
- cython >=0.28.4
- dill >=0.3.1.1
- giflib
- grpc-cpp
- flatbuffers
- icu
- jpeg
- libcurl
- libpng
- libprotobuf
- openssl
- pybind11
- snappy
- sqlite
- zlib
# requirements specified by the package itself
- absl-py >=0.10.0
- astunparse >=1.6.3
- python-flatbuffers 1.12.*
- google-pasta >=0.2
- h5py 2.10.*
- keras-preprocessing >=1.1.2
- numpy 1.19.*
- opt_einsum 3.3.0.*
- protobuf >=3.9.2
- six >=1.15.0
- termcolor >=1.1.0
- typing_extensions >=3.7.4
- wheel >=0.35
- wrapt >=1.11.1
# upstream wants exact pin for gast
- gast ==0.3.3
# TF-API needs to move in sync
- tensorboard >=2.4.0,<2.5
- tensorflow-estimator >=2.4.0,<2.5
run:
- python
- absl-py >=0.10.0
- astunparse >=1.6.3
- python-flatbuffers 1.12.*
- google-pasta >=0.2
- h5py 2.10.*
- keras-preprocessing >=1.1.2
- numpy >=1.19
- opt_einsum 3.3.0.*
- protobuf >=3.9.2
- six >=1.15.0
- termcolor >=1.1.0
- typing_extensions >=3.7.4
- wheel >=0.35
- wrapt >=1.11.1
- grpcio {{ grpc_cpp }}.*
# upstream wants exact pin for gast
- gast ==0.3.3
# TF-API needs to move in sync
- tensorboard >=2.4.0,<2.5
- tensorflow-estimator >=2.4.0,<2.5
test:
requires:
- pip
imports:
- tensorflow
commands:
- pip check
- tf_upgrade_v2 --help
- saved_model_cli --help
- tflite_convert --help # [not win]
- toco_from_protos --help # [not win]
- toco --help # [not win]
- name: tensorflow
requirements:
host:
- python
- {{ pin_subpackage('tensorflow-base', exact=True) }}
run:
- python
- {{ pin_subpackage('tensorflow-base', exact=True) }}
- name: libtensorflow
script: cp_libtensorflow.sh
build:
skip: true # [not linux]
requirements:
# build requirements needs to pick up the compiler run_exports
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
# host requirements to pick up run_exports
host:
- giflib
- grpc-cpp
- icu
- jpeg
- libcurl
- libpng
- libprotobuf
- openssl
- snappy
- sqlite
- zlib
test:
files:
- test_libtensorflow.sh
- test_c.c
requires:
- {{ compiler('c') }}
commands:
- test -f $PREFIX/lib/libtensorflow.so # [not win]
- ./test_libtensorflow.sh # [not win]
- name: libtensorflow_cc
script: cp_libtensorflow_cc.sh
build:
skip: true # [not linux]
requirements:
# build requirements needs to pick up the compiler run_exports
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- rsync
# host requirements to pick up run_exports
host:
- giflib
- grpc-cpp
- icu
- jpeg
- libcurl
- libpng
- libprotobuf
- openssl
- snappy
- sqlite
- zlib
test:
files:
- test_libtensorflow_cc.sh
- test_cc.cc
requires:
- {{ compiler('cxx') }}
commands:
- test -f $PREFIX/lib/libtensorflow_cc.so # [not win]
- ./test_libtensorflow_cc.sh # [not win]
about:
home: http://tensorflow.org/
license: Apache-2.0
license_file: LICENSE
license_family: Apache
summary: TensorFlow is an open source machine learning framework for everyone.
description: |
TensorFlow provides multiple APIs.The lowest level API, TensorFlow Core
provides you with complete programming control.
Base package contains only tensorflow, not tensorflow-tensorboard.
dev_url: https://github.com/tensorflow/tensorflow
doc_url: https://www.tensorflow.org/get_started/get_started
doc_source_url: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/docs_src
extra:
feedstock-name: tensorflow
recipe-maintainers:
- farhantejani
- ghego
- gilbertfrancois
- h-vetinari
- hajapy
- jschueller
- njzjz
- waitingkuo
- xhochy