|
36 | 36 | <new def="estimator" class="Lobject" /> |
37 | 37 | <putfield class="LRoot" field="estimator" fieldType="LRoot" ref="x" value="estimator" /> |
38 | 38 |
|
| 39 | + <new def="data" class="Lobject" /> |
| 40 | + <putfield class="LRoot" field="data" fieldType="LRoot" ref="x" value="data" /> |
| 41 | + |
39 | 42 | <new def="distribute" class="Lobject" /> |
40 | 43 | <putfield class="LRoot" field="distribute" fieldType="LRoot" ref="x" value="distribute" /> |
41 | 44 |
|
42 | 45 | <new def="nn" class="Lobject" /> |
43 | 46 | <putfield class="LRoot" field="nn" fieldType="LRoot" ref="x" value="nn" /> |
44 | | - <new def="data" class="Lobject" /> |
45 | | - <putfield class="LRoot" field="data" fieldType="LRoot" ref="x" value="data" /> |
46 | | - <new def="Dataset" class="Lobject" /> |
47 | | - <putfield class="LRoot" field="Dataset" fieldType="LRoot" ref="data" value="Dataset" /> |
48 | 47 | <new def="random" class="Lobject" /> |
49 | 48 | <putfield class="LRoot" field="random" fieldType="LRoot" ref="x" value="random" /> |
50 | 49 | <new def="sparse" class="Lobject" /> |
|
65 | 64 | <new def="Estimator" class="Ltensorflow/estimator/Estimator" /> |
66 | 65 | <putfield class="LRoot" field="Estimator" fieldType="LRoot" ref="estimator" value="Estimator" /> |
67 | 66 |
|
| 67 | + <new def="Dataset" class="Ltensorflow/data/Dataset" /> |
| 68 | + <putfield class="LRoot" field="Dataset" fieldType="LRoot" ref="data" value="Dataset" /> |
| 69 | + |
68 | 70 | <new def="MirroredStrategy" class="Ltensorflow/distribute/MirroredStrategy" /> |
69 | 71 | <putfield class="LRoot" field="MirroredStrategy" fieldType="LRoot" ref="distribute" value="MirroredStrategy" /> |
70 | 72 |
|
|
74 | 76 | <new def="numpy_input_fn" class="Ltensorflow/estimator/numpy_input_fn" /> |
75 | 77 | <putfield class="LRoot" field="numpy_input_fn" fieldType="LRoot" ref="inputs" value="numpy_input_fn" /> |
76 | 78 |
|
| 79 | + <new def="from_tensor_slices" class="Ltensorflow/data/Dataset/from_tensor_slices" /> |
| 80 | + <putfield class="LRoot" field="from_tensor_slices" fieldType="LRoot" ref="Dataset" value="from_tensor_slices" /> |
| 81 | + |
77 | 82 | <new def="reshape" class="Ltensorflow/functions/reshape" /> |
78 | 83 | <putfield class="LRoot" field="reshape" fieldType="LRoot" ref="x" value="reshape" /> |
79 | 84 |
|
|
126 | 131 | <new def="array_ops" class="Lobject" /> |
127 | 132 | <putfield class="LRoot" field="array_ops" fieldType="LRoot" ref="ops" value="array_ops" /> |
128 | 133 |
|
129 | | - <new def="data_ops" class="Lobject" /> |
130 | | - <putfield class="LRoot" field="data_ops" fieldType="LRoot" ref="ops" value="data_ops" /> |
131 | | - |
132 | 134 | <new def="random_ops" class="Lobject" /> |
133 | 135 | <putfield class="LRoot" field="random_ops" fieldType="LRoot" ref="ops" value="random_ops" /> |
134 | 136 |
|
|
174 | 176 | <putfield class="LRoot" field="ones" fieldType="LRoot" ref="x" value="ones" /> |
175 | 177 | <putfield class="LRoot" field="ones" fieldType="LRoot" ref="array_ops" value="ones" /> |
176 | 178 |
|
177 | | - <new def="from_tensor_slices" class="Ltensorflow/functions/from_tensor_slices" /> |
178 | | - <putfield class="LRoot" field="from_tensor_slices" fieldType="LRoot" ref="Dataset" value="from_tensor_slices" /> |
179 | | - <putfield class="LRoot" field="from_tensor_slices" fieldType="LRoot" ref="data_ops" value="from_tensor_slices" /> |
180 | | - |
181 | 179 | <new def="zeros" class="Ltensorflow/functions/zeros" /> |
182 | 180 | <putfield class="LRoot" field="zeros" fieldType="LRoot" ref="x" value="zeros" /> |
183 | 181 | <putfield class="LRoot" field="zeros" fieldType="LRoot" ref="array_ops" value="zeros" /> |
|
410 | 408 | </method> |
411 | 409 | </class> |
412 | 410 |
|
413 | | - <class name="from_tensor_slices" allocatable="true"> |
414 | | - <!-- "read_dataset" means that this function reads a tensor iterable. --> |
415 | | - <method name="read_dataset" descriptor="()LRoot;"> |
416 | | - <new def="x" class="Ltensorflow/python/ops/data_ops/from_tensor_slices" /> |
417 | | - <return value="x" /> |
418 | | - </method> |
419 | | - <method name="do" descriptor="()LRoot;" numArgs="2" paramNames="tensors name"> |
420 | | - <call class="LRoot" name="read_dataset" descriptor="()LRoot;" type="virtual" arg0="arg0" def="x" /> |
421 | | - <return value="x" /> |
422 | | - </method> |
423 | | - </class> |
424 | | - |
425 | 411 | <class name="Variable" allocatable="true"> |
426 | 412 | <method name="read_data" descriptor="()LRoot;"> |
427 | 413 | <new def="x" class="Ltensorflow/python/ops/variables/Variable" /> |
|
804 | 790 | </class> |
805 | 791 | </package> |
806 | 792 |
|
| 793 | + <package name="tensorflow/data"> |
| 794 | + <class name="Dataset" allocatable="true"> |
| 795 | + <!-- "read_dataset" means that this function reads a tensor iterable. --> |
| 796 | + <method name="read_dataset" descriptor="()LRoot;"> |
| 797 | + <new def="shuffle" class="Ltensorflow/data/shuffle" /> |
| 798 | + <putfield class="LRoot" field="shuffle" fieldType="LRoot" ref="arg0" value="shuffle" /> |
| 799 | + <new def="batch" class="Ltensorflow/data/batch" /> |
| 800 | + <putfield class="LRoot" field="batch" fieldType="LRoot" ref="arg0" value="batch" /> |
| 801 | + <return value="arg0" /> |
| 802 | + </method> |
| 803 | + <method name="do" descriptor="()LRoot;" numArgs="2" paramNames="self variant_tensor"> |
| 804 | + <call class="LRoot" name="read_dataset" descriptor="()LRoot;" type="virtual" arg0="arg0" def="x" /> |
| 805 | + <return value="x" /> |
| 806 | + </method> |
| 807 | + </class> |
| 808 | + |
| 809 | + <class name="shuffle" allocatable="true"> |
| 810 | + <!-- https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/data/Dataset#shuffle --> |
| 811 | + <method name="do" descriptor="()LRoot;" numArgs="5" paramNames="self buffer_size seed reshuffle_each_iteration name"> |
| 812 | + <!-- FIXME: Workaround for https://github.com/wala/ML/issues/127. This method (shuffle) doesn't really return a "new" dataset but rather a modified version of the receiver. But, the receiver isn't available without a trampoline AFAIK. --> |
| 813 | + <new def="x" class="Ltensorflow/data/Dataset" /> |
| 814 | + <call class="Ltensorflow/data/Dataset" name="read_dataset" descriptor="()LRoot;" type="virtual" arg0="x" def="xx" /> |
| 815 | + <return value="xx" /> |
| 816 | + </method> |
| 817 | + </class> |
| 818 | + |
| 819 | + <class name="batch" allocatable="true"> |
| 820 | + <!-- https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/data/Dataset#batch --> |
| 821 | + <method name="do" descriptor="()LRoot;" numArgs="6" paramNames="self batch_size drop_remainder num_parallel_calls deterministic name"> |
| 822 | + <!-- FIXME: Workaround for https://github.com/wala/ML/issues/127. --> |
| 823 | + <new def="x" class="Ltensorflow/data/Dataset" /> |
| 824 | + <call class="Ltensorflow/data/Dataset" name="read_dataset" descriptor="()LRoot;" type="virtual" arg0="x" def="xx" /> |
| 825 | + <return value="xx" /> |
| 826 | + </method> |
| 827 | + </class> |
| 828 | + </package> |
| 829 | + |
| 830 | + <package name="tensorflow/data/Dataset"> |
| 831 | + <class name="from_tensor_slices" allocatable="true"> |
| 832 | + <method name="do" descriptor="()LRoot;" numArgs="2" paramNames="tensors name"> |
| 833 | + <new def="x" class="Ltensorflow/data/Dataset" /> |
| 834 | + <call class="Ltensorflow/data/Dataset" name="read_dataset" descriptor="()LRoot;" type="virtual" arg0="x" def="xx" /> |
| 835 | + <return value="xx" /> |
| 836 | + </method> |
| 837 | + </class> |
| 838 | + </package> |
| 839 | + |
807 | 840 | <package name="tensorflow/estimator/train"> |
808 | 841 | <class name="train" allocatable="true"> |
809 | 842 | <method name="do" descriptor="()LRoot;" numArgs="3"> |
|
0 commit comments