@@ -46,38 +46,6 @@ To compile and use TensorFlow Data Validation, you need to set up some prerequis
4646If bazel is not installed on your system, install it now by following [ these
4747directions] ( https://bazel.build/versions/master/docs/install.html ) .
4848
49- #### Packages
50-
51- To install TensorFlow Data Validation dependencies, execute the following:
52-
53- <!-- common_typos_disable -->
54- ``` shell
55- sudo apt-get update && sudo apt-get install -y \
56- automake \
57- build-essential \
58- curl \
59- libcurl3-dev \
60- git \
61- libtool \
62- libfreetype6-dev \
63- libpng12-dev \
64- libzmq3-dev \
65- pkg-config \
66- python-dev \
67- python-numpy \
68- python-pip \
69- software-properties-common \
70- swig \
71- zip \
72- zlib1g-dev
73- ```
74-
75- The list of packages needed to build TensorFlow changes over time, so if you
76- encounter any issues, refer TensorFlow's [ build
77- instructions] ( https://www.tensorflow.org/install/install_sources ) . Pay
78- particular attention to ` apt-get install ` and ` pip install ` commands which you
79- may need to run.
80-
8149### 2. Clone the TensorFlow Data Validation repository
8250
8351``` shell
@@ -94,17 +62,17 @@ pass `-b <branchname>` to the `git clone` command.
9462TensorFlow Data Validation uses Bazel to build. Use Bazel commands to build individual
9563targets or the entire source tree.
9664
97- To build the entire tree , execute:
65+ To build the Python wrappers for the C++ modules , execute:
9866
9967``` shell
100- bazel build -c opt tensorflow_data_validation/anomalies/...
68+ bazel build -c opt tensorflow_data_validation/anomalies:pywrap_tensorflow_data_validation
10169```
10270
10371### 4. Copy over generated Python wrappers
10472
10573``` shell
106- cp bazel-bin/tensorflow_data_validation/anomalies/_pywrap_validation .so tensorflow_data_validation/anomalies/
107- cp bazel-bin/tensorflow_data_validation/anomalies/pywrap_validation .py tensorflow_data_validation/anomalies/
74+ cp bazel-bin/tensorflow_data_validation/anomalies/_pywrap_tensorflow_data_validation .so tensorflow_data_validation/anomalies/
75+ cp bazel-bin/tensorflow_data_validation/anomalies/pywrap_tensorflow_data_validation .py tensorflow_data_validation/anomalies/
10876```
10977
11078### 5. Build the pip package
0 commit comments