René's URL Explorer Experiment


Title: Large latency on Tensor allocation · Issue #313 · tensorflow/java · GitHub

Open Graph Title: Large latency on Tensor allocation · Issue #313 · tensorflow/java

X Title: Large latency on Tensor allocation · Issue #313 · tensorflow/java

Description: System information TensorFlow version: 0.3.1 Doc Link: https://www.tensorflow.org/jvm/install Describe the documentation issue Not sure this is the correct forum but I would like to some guidance on how to setup sessions and resource man...

Open Graph Description: System information TensorFlow version: 0.3.1 Doc Link: https://www.tensorflow.org/jvm/install Describe the documentation issue Not sure this is the correct forum but I would like to some guidance o...

X Description: System information TensorFlow version: 0.3.1 Doc Link: https://www.tensorflow.org/jvm/install Describe the documentation issue Not sure this is the correct forum but I would like to some guidance o...

Opengraph URL: https://github.com/tensorflow/java/issues/313

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Large latency on Tensor allocation","articleBody":"\r\n**System information**\r\n- TensorFlow version: 0.3.1\r\n- Doc Link: https://www.tensorflow.org/jvm/install\r\n\r\n\r\n**Describe the documentation issue**\r\n\r\nNot sure this is the correct forum but I would like to some guidance on how to setup sessions and resource management would be interesting. \r\n\r\nAfter two weeks trying to understand why latencies in 0.3.1 were completely uncontrollable (as compared to official 1.3.1) I ran into #208. This matches my observations. \r\n\r\nWe are trying to run Prediction on models with thousands of data points in different tensor per prediction. Memory allocation on the threads are in 20MB/s and there seems to be a sync between JavaCCP Allocation thread and our worker threads. In addition to this allocation using Size(1) tensor seems to be very slow (in the 7ms range). \r\n\r\nAfter reading #208, it seems we are doing everything wrong. But I don't really have a clear picture of how it should be done: Would `EagerSession` help? Could I use a `Session` per HTTP request? Should I allocate larger multi-dimensional  tensors instead of a single one? How should I configure thread pools?  I understand that the API is work in progress, but current documentation is very light on this kind of documentation.\r\n\r\nI don't think this is a bug, but I can convert into some other sort of issue. ","author":{"url":"https://github.com/nebulorum","@type":"Person","name":"nebulorum"},"datePublished":"2021-05-03T19:44:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":43},"url":"https://github.com/313/java/issues/313"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:917f5200-5fb5-c40f-760d-d757ccb81768
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE94A:1672C1:B03BFD:E68D62:696AF97E
html-safe-nonce280c7c5594151ea55357c2eba4f6e794fa08a22994b4e43a2fceea02a0af80a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTRBOjE2NzJDMTpCMDNCRkQ6RTY4RDYyOjY5NkFGOTdFIiwidmlzaXRvcl9pZCI6Ijg2MjA2NDM1OTI3NTUxNDkxODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac11b138f5f2bf34a648177303444c82c75d910fd265f394727c15107e5fa91b22
hovercard-subject-tagissue:874854435
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tensorflow/java/313/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e5239b8c1848009e1596710837cf112bc4882a3ac63e82d39f4ae41943971428/tensorflow/java/issues/313
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e5239b8c1848009e1596710837cf112bc4882a3ac63e82d39f4ae41943971428/tensorflow/java/issues/313
og:image:altSystem information TensorFlow version: 0.3.1 Doc Link: https://www.tensorflow.org/jvm/install Describe the documentation issue Not sure this is the correct forum but I would like to some guidance o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenebulorum
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/tensorflow/java git https://github.com/tensorflow/java.git
octolytics-dimension-user_id15658638
octolytics-dimension-user_logintensorflow
octolytics-dimension-repository_id207384523
octolytics-dimension-repository_nwotensorflow/java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id207384523
octolytics-dimension-repository_network_root_nwotensorflow/java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/tensorflow/java/issues/313#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftensorflow%2Fjava%2Fissues%2F313
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftensorflow%2Fjava%2Fissues%2F313
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=tensorflow%2Fjava
Reloadhttps://github.com/tensorflow/java/issues/313
Reloadhttps://github.com/tensorflow/java/issues/313
Reloadhttps://github.com/tensorflow/java/issues/313
tensorflow https://github.com/tensorflow
javahttps://github.com/tensorflow/java
Notifications https://github.com/login?return_to=%2Ftensorflow%2Fjava
Fork 223 https://github.com/login?return_to=%2Ftensorflow%2Fjava
Star 913 https://github.com/login?return_to=%2Ftensorflow%2Fjava
Code https://github.com/tensorflow/java
Issues 151 https://github.com/tensorflow/java/issues
Pull requests 24 https://github.com/tensorflow/java/pulls
Actions https://github.com/tensorflow/java/actions
Projects 0 https://github.com/tensorflow/java/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/tensorflow/java/security
Please reload this pagehttps://github.com/tensorflow/java/issues/313
Insights https://github.com/tensorflow/java/pulse
Code https://github.com/tensorflow/java
Issues https://github.com/tensorflow/java/issues
Pull requests https://github.com/tensorflow/java/pulls
Actions https://github.com/tensorflow/java/actions
Projects https://github.com/tensorflow/java/projects
Security https://github.com/tensorflow/java/security
Insights https://github.com/tensorflow/java/pulse
New issuehttps://github.com/login?return_to=https://github.com/tensorflow/java/issues/313
New issuehttps://github.com/login?return_to=https://github.com/tensorflow/java/issues/313
#361https://github.com/tensorflow/java/pull/361
Large latency on Tensor allocationhttps://github.com/tensorflow/java/issues/313#top
#361https://github.com/tensorflow/java/pull/361
https://github.com/nebulorum
https://github.com/nebulorum
nebulorumhttps://github.com/nebulorum
on May 3, 2021https://github.com/tensorflow/java/issues/313#issue-874854435
https://www.tensorflow.org/jvm/installhttps://www.tensorflow.org/jvm/install
#208https://github.com/tensorflow/java/issues/208
#208https://github.com/tensorflow/java/issues/208
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.