File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Simple CLI tool to read `TensorFlow` `TFRecords`.
5
5
## Install
6
6
7
7
### MacOs
8
+
8
9
``` bash
9
10
brew tap spotify/public
10
11
brew install tfreader
@@ -16,7 +17,7 @@ Right now we only have binaries available under [releases](https://github.com/sp
16
17
17
18
## Usage
18
19
19
- ```
20
+ ``` bash
20
21
tfr
21
22
Usage: tfr [options] < files? | STDIN>
22
23
--usage < bool>
@@ -29,12 +30,28 @@ Usage: tfr [options] <files? | STDIN>
29
30
Number of records to output
30
31
```
31
32
32
- ### Example
33
+ ## Examples
34
+
35
+ #### Google Cloud Storage
36
+
37
+ ``` bash
38
+ tfr -n 1 gs://< bucket> /< path> /part-00000-of-00004.tfrecords | jq .
39
+ ```
40
+
41
+ #### Local Filesystem
33
42
34
43
``` bash
35
44
tfr -n 1 core/src/test/resources/part-00000-of-00004.tfrecords | jq .
36
45
```
37
46
47
+ #### ` stdin `
48
+
49
+ ``` bash
50
+ cat core/src/test/resources/part-00000-of-00004.tfrecords | tfr -n 1 | jq .
51
+ ```
52
+
53
+ ### Output Example
54
+
38
55
``` json
39
56
{
40
57
"features" : {
You can’t perform that action at this time.
0 commit comments