-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obs window size #5
Open
SatriaPriambada
wants to merge
11
commits into
stateful-actors-implementation
Choose a base branch
from
obs_window_size
base: stateful-actors-implementation
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8221465
add number of observation window size in 30s
SatriaPriambada 26882e3
take first element form list as arg in obs_w_30sec
SatriaPriambada 9826360
convert str to int: obs_w_30sec
SatriaPriambada c5eb44d
add number of observation window size in 30s
SatriaPriambada 7f7abda
Merge remote-tracking branch 'origin/obs_window_size' into obs_window…
SatriaPriambada 20dcc2d
change the interval for 30sec * 250 Hz
SatriaPriambada 4e09e05
change the assert to check that max distance > 0
SatriaPriambada 1558aea
Merge branch 'stateful-actors-implementation' into obs_window_size
alindkhare 2464030
fix calculate throughput
SatriaPriambada 7659ccb
Merge branch 'stateful-actors-implementation' into obs_window_size
SatriaPriambada 361b44c
add fireclient true
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,7 +111,12 @@ async def handle_profile_requests(self, scope, receive, send): | |
raise ValueError("Multiple Patients specified." | ||
"Specify only one.") | ||
patient_name = patient_name[0] | ||
prediction_tensor = torch.zeros((1, 1, PREDITICATE_INTERVAL)) | ||
|
||
obs_w_30sec = query_kwargs.pop("obs_w_30sec", None) | ||
if obs_w_30sec is None: | ||
raise ValueError("Specify obs_w_30sec in query") | ||
obs_w_30sec = int(obs_w_30sec[0]) | ||
prediction_tensor = torch.zeros((obs_w_30sec, 1, PREDITICATE_INTERVAL)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need one more profiling : @ray.remote
def echo_tensor(a : torch.Tensor):
return a
>>> %timeit ray.get(echo_tensor.remote(torch.zeros((obs_w_30sec, 1, PREDITICATE_INTERVAL)))) |
||
|
||
request_sent_time = time.time() | ||
result = await self.ensemble_pipeline.remote(data=prediction_tensor) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why obs_window has to be per query basis? Can it part of http server instantiation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that when profile client make request it can change the obs_window.
If we put it as part of http server instantiation then the client will always have to send the same obs_window.
For example, when the patients are on stable condition client will only look at interval of obs_window 30s, however when the patients are critical condition, the client can send obs_window 30s, 2min, 5 min, etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the client has to be consistent in sending the information. Any reasons for the assumption you are making?