Skip to content

Commit

Permalink
Update et-pin.txt (pytorch#887)
Browse files Browse the repository at this point in the history
* Update et-pin.txt

Updating Pin for ET to 2024-07-01 nightly release

* Update ManagedTensor to reflect the new API
  • Loading branch information
Jack-Khuu authored and malfet committed Jul 17, 2024
1 parent d1ae6b6 commit 763c880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pins/et-pin.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ff4e9edc55c86953ae33dbbaaacab8c9949dcb74
172574a6be5910a4609e4ed1bef2b6b8475ddb3d
4 changes: 2 additions & 2 deletions runner/run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ float* forward(Transformer* transformer, int token, int pos) {
.to(torch::kCPU);
auto logits = result[0].data_ptr();
#else // __ET_MODEL__
ManagedTensor pos_managed(pos_buffer, sizeof(int64_t), {1}, ScalarType::Long);
ManagedTensor pos_managed(pos_buffer, {1}, ScalarType::Long);
ManagedTensor tokens_managed(
token_buffer, sizeof(int64_t), {1, 1}, ScalarType::Long);
token_buffer, {1, 1}, ScalarType::Long);
std::vector<EValue> inputs;
auto tmp1 = EValue(tokens_managed.get_aliasing_tensor());
auto tmp2 = EValue(pos_managed.get_aliasing_tensor());
Expand Down

0 comments on commit 763c880

Please sign in to comment.