René's URL Explorer Experiment


Title: Java API DataBuffers.of uses buffer incorrectly · Issue #9 · tensorflow/java-ndarray · GitHub

Open Graph Title: Java API DataBuffers.of uses buffer incorrectly · Issue #9 · tensorflow/java-ndarray

X Title: Java API DataBuffers.of uses buffer incorrectly · Issue #9 · tensorflow/java-ndarray

Description: Hi, I am seeing this behavior when creating a Tensor using a buffer that is created by wrapping an array. The example below can reproduce the issue: // create an buffer by wrapping an array but buffer start from position 3 and length is ...

Open Graph Description: Hi, I am seeing this behavior when creating a Tensor using a buffer that is created by wrapping an array. The example below can reproduce the issue: // create an buffer by wrapping an array but buf...

X Description: Hi, I am seeing this behavior when creating a Tensor using a buffer that is created by wrapping an array. The example below can reproduce the issue: // create an buffer by wrapping an array but buf...

Opengraph URL: https://github.com/tensorflow/java-ndarray/issues/9

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java API DataBuffers.of uses buffer incorrectly","articleBody":"Hi, \r\n\r\nI am seeing this behavior when creating a Tensor using a buffer that is created by wrapping an array. \r\nThe example below can reproduce the issue:\r\n\r\n```\r\n// create an buffer by wrapping an array but buffer start from position 3 and length is 4\r\nfinal IntBuffer src = IntBuffer.wrap(new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8}, 3, 4).asReadOnlyBuffer();\r\nfinal org.tensorflow.Tensor tensor = TInt32.tensorOf(Shape.of(4), DataBuffers.of(src));\r\n\r\nfinal int[] value = new int[4];\r\ntensor.asRawTensor().data().asInts().read(value);\r\nassertArrayEquals(new int[]{0, 1, 2, 3}, value); // This is not really a correct behavior, it is not honoring the buffer offset when wrapping the array, it just takes the first 4 elements\r\n//assertArrayEquals(new int[]{3, 4, 5, 6}, value); // This should be the desired result\r\n```\r\n\r\nSystem info:\r\nJava `8`\r\ntensorflow-java (tensorflow-core-api) `0.4.1`","author":{"url":"https://github.com/fyang996","@type":"Person","name":"fyang996"},"datePublished":"2022-08-31T23:48:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9/java-ndarray/issues/9"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5f4a3bf9-ff8e-74e5-60e1-cbbcf8735851
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA4F4:12F3EF:27DBE7:37D035:697241EC
html-safe-noncecb5703e11d0f579f0d30b13ccd211f921d5842e15a40ba213a4844c21adb900d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEY0OjEyRjNFRjoyN0RCRTc6MzdEMDM1OjY5NzI0MUVDIiwidmlzaXRvcl9pZCI6IjM1OTc2MzUxMDE5MjA0Nzc2NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac30d68da6b9ec734a2ae401c5ecc96a70ba4f20b8965c02ebddcb4103a4893bb5
hovercard-subject-tagissue:1360681241
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-ndarray/9/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cd4ef0d05702faf9c283648a7bb76d0ce73e026205de34264c40d3aa1a676ede/tensorflow/java-ndarray/issues/9
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd4ef0d05702faf9c283648a7bb76d0ce73e026205de34264c40d3aa1a676ede/tensorflow/java-ndarray/issues/9
og:image:altHi, I am seeing this behavior when creating a Tensor using a buffer that is created by wrapping an array. The example below can reproduce the issue: // create an buffer by wrapping an array but buf...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefyang996
hostnamegithub.com
expected-hostnamegithub.com
None2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11
turbo-cache-controlno-preview
go-importgithub.com/tensorflow/java-ndarray git https://github.com/tensorflow/java-ndarray.git
octolytics-dimension-user_id15658638
octolytics-dimension-user_logintensorflow
octolytics-dimension-repository_id349488998
octolytics-dimension-repository_nwotensorflow/java-ndarray
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id349488998
octolytics-dimension-repository_network_root_nwotensorflow/java-ndarray
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
release584fea6daacd0ba6f8dbec869937910ee0ae2e64
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues/9#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftensorflow%2Fjava-ndarray%2Fissues%2F9
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftensorflow%2Fjava-ndarray%2Fissues%2F9
Sign up https://patch-diff.githubusercontent.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-ndarray
Reloadhttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues/9
Reloadhttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues/9
Reloadhttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues/9
tensorflow https://patch-diff.githubusercontent.com/tensorflow
java-ndarrayhttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Ftensorflow%2Fjava-ndarray
Fork 17 https://patch-diff.githubusercontent.com/login?return_to=%2Ftensorflow%2Fjava-ndarray
Star 81 https://patch-diff.githubusercontent.com/login?return_to=%2Ftensorflow%2Fjava-ndarray
Code https://patch-diff.githubusercontent.com/tensorflow/java-ndarray
Issues 2 https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues
Pull requests 1 https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/pulls
Actions https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/actions
Projects 0 https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/security
Please reload this pagehttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues/9
Insights https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/pulse
Code https://patch-diff.githubusercontent.com/tensorflow/java-ndarray
Issues https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues
Pull requests https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/pulls
Actions https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/actions
Projects https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/projects
Security https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/security
Insights https://patch-diff.githubusercontent.com/tensorflow/java-ndarray/pulse
Java API DataBuffers.of uses buffer incorrectlyhttps://patch-diff.githubusercontent.com/tensorflow/java-ndarray/issues/9#top
https://github.com/fyang996
https://github.com/fyang996
fyang996https://github.com/fyang996
on Aug 31, 2022https://github.com/tensorflow/java-ndarray/issues/9#issue-1360681241
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.