mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[Reland2] fix missing-prototypes warnings in torch_cpu (Part 4) (#102228)
This PR relands the changes introduced in PR https://github.com/pytorch/pytorch/pull/100849. The old PR turnd nnc_* functions into static. We now add declarations for them and hope that inter builds will pass. Pull Request resolved: https://github.com/pytorch/pytorch/pull/102228 Approved by: https://github.com/albanD
This commit is contained in:
@ -54,7 +54,7 @@ CompilationOptions getOptionsFromGlobal() {
|
||||
return compilation_options;
|
||||
}
|
||||
|
||||
IValue to_tuple(std::initializer_list<IValue> ivalues) {
|
||||
static IValue to_tuple(std::initializer_list<IValue> ivalues) {
|
||||
return c10::ivalue::Tuple::create(ivalues);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user