File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ def emit_nn_body(option):
780
780
# _out variants must create buffers and insert them in the
781
781
# arguments list between output and input arguments
782
782
for buffer in option ['buffers' ]:
783
- body .append ('Tensor {} = tensor( );' .format (buffer ['name' ]))
783
+ body .append ('Tensor {} = at::empty({{0}}, this->options() );' .format (buffer ['name' ]))
784
784
actuals = [arg ['name' ] for arg in option ['arguments' ] if arg .get ('output' )]
785
785
actuals += [buffer ['name' ] for buffer in option ['buffers' ]]
786
786
actuals += [arg ['name' ] for arg in option ['arguments' ] if not arg .get ('output' )]
Original file line number Diff line number Diff line change 1901
1901
SparseCPU : new_with_size_sparse
1902
1902
SparseCUDA : new_with_size_sparse
1903
1903
1904
- - func : tensor(Type dtype) -> Tensor
1905
- variants : []
1906
-
1907
1904
- func : tensor(Type dtype, IntList size) -> Tensor
1908
1905
variants : []
1909
1906
You can’t perform that action at this time.
0 commit comments