Skip to content

allow forward_fn to accept more arguments#1803

Closed
mjurbanski-reef wants to merge 1 commit intoopentensor:stagingfrom
backend-developers-ltd:allow_more_params
Closed

allow forward_fn to accept more arguments#1803
mjurbanski-reef wants to merge 1 commit intoopentensor:stagingfrom
backend-developers-ltd:allow_more_params

Conversation

@mjurbanski-reef
Copy link
Contributor

AFAIK there is no downside, and it does allow some extra innovation when handling request by allowing to monitor HTTP headers or other params etc directly in forward_fn. This also helps with debugging.

While enabling it, I refactored this function a little to reduce code duplication & improve the readability of it.

@thealligatorking
Copy link
Contributor

@mjurbanski-reef thank you! We will test this out to ensure backwards compatibility.

@thealligatorking
Copy link
Contributor

@mjurbanski-reef we plan on getting this into 7.0.0

@mjurbanski-reef
Copy link
Contributor Author

superseded by #1822 which includes other related changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants