mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Misc visibility changes for compiled autograd (#105298)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105298 Approved by: https://github.com/albanD, https://github.com/soulitzer
This commit is contained in:
committed by
PyTorch MergeBot
parent
cf404a8ce4
commit
e9fd815226
@ -230,6 +230,11 @@ struct TORCH_API Node : std::enable_shared_from_this<Node> {
|
||||
return input_metadata_[index];
|
||||
}
|
||||
|
||||
// Danger: not thread safe, caller must protect with lock
|
||||
InputMetadata& mutable_input_metadata(size_t index) {
|
||||
return input_metadata_[index];
|
||||
}
|
||||
|
||||
/**
|
||||
* Note: Function Streams
|
||||
* A function's stream (for a given device type) is the stream of the first
|
||||
|
Reference in New Issue
Block a user