File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1087,18 +1087,18 @@ def vectorized_map(function, elements):
1087
1087
in the case of a single tensor input `elements`:
1088
1088
1089
1089
```python
1090
- def vectorized_map(function, elements)
1090
+ def vectorized_map(function, elements):
1091
1091
outputs = []
1092
1092
for e in elements:
1093
1093
outputs.append(function(e))
1094
- return stack(outputs)
1094
+ return np. stack(outputs)
1095
1095
```
1096
1096
1097
1097
In the case of an iterable of tensors `elements`,
1098
1098
it implements the following:
1099
1099
1100
1100
```python
1101
- def vectorized_map(function, elements)
1101
+ def vectorized_map(function, elements):
1102
1102
batch_size = elements[0].shape[0]
1103
1103
outputs = []
1104
1104
for index in range(batch_size):
You can’t perform that action at this time.
0 commit comments