{"action":"created","issue":{"url":"https://api.github.com/repos/keras-team/keras/issues/11724","repository_url":"https://api.github.com/repos/keras-team/keras","labels_url":"https://api.github.com/repos/keras-team/keras/issues/11724/labels{/name}","comments_url":"https://api.github.com/repos/keras-team/keras/issues/11724/comments","events_url":"https://api.github.com/repos/keras-team/keras/issues/11724/events","html_url":"https://github.com/keras-team/keras/issues/11724","id":384000978,"node_id":"MDU6SXNzdWUzODQwMDA5Nzg=","number":11724,"title":"Allow rank > 2 input sparse tensor","user":{"login":"hanayashiki","id":26056783,"node_id":"MDQ6VXNlcjI2MDU2Nzgz","avatar_url":"https://avatars3.githubusercontent.com/u/26056783?v=4","gravatar_id":"","url":"https://api.github.com/users/hanayashiki","html_url":"https://github.com/hanayashiki","followers_url":"https://api.github.com/users/hanayashiki/followers","following_url":"https://api.github.com/users/hanayashiki/following{/other_user}","gists_url":"https://api.github.com/users/hanayashiki/gists{/gist_id}","starred_url":"https://api.github.com/users/hanayashiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanayashiki/subscriptions","organizations_url":"https://api.github.com/users/hanayashiki/orgs","repos_url":"https://api.github.com/users/hanayashiki/repos","events_url":"https://api.github.com/users/hanayashiki/events{/privacy}","received_events_url":"https://api.github.com/users/hanayashiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-24T16:07:19Z","updated_at":"2018-11-24T16:37:08Z","closed_at":null,"author_association":"NONE","body":"I really cannot find a way to input **sparse** tensor with more than 2-d (in batch). In `scipy.sparse` there are really only implementations for sparse matrix but not sparse tensor (using `scipy.sparse` is also not mentioned in the document, [](https://keras.io/layers/core/#input)). I think this needs an improvement to allow rank > 2 input sparse tensors. \r\n\r\nI am constructing a graph network, where I need to deal with sparse adjacent matrices. To train in batch, I need to feed adjacent matrices with the shape of (sample, n, n), so it is really necessary for this kind of jobs to allow rank > 2 sparse tensors as input."},"comment":{"url":"https://api.github.com/repos/keras-team/keras/issues/comments/441379713","html_url":"https://github.com/keras-team/keras/issues/11724#issuecomment-441379713","issue_url":"https://api.github.com/repos/keras-team/keras/issues/11724","id":441379713,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM3OTcxMw==","user":{"login":"gabrieldemarmiesse","id":12891691,"node_id":"MDQ6VXNlcjEyODkxNjkx","avatar_url":"https://avatars1.githubusercontent.com/u/12891691?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrieldemarmiesse","html_url":"https://github.com/gabrieldemarmiesse","followers_url":"https://api.github.com/users/gabrieldemarmiesse/followers","following_url":"https://api.github.com/users/gabrieldemarmiesse/following{/other_user}","gists_url":"https://api.github.com/users/gabrieldemarmiesse/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrieldemarmiesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrieldemarmiesse/subscriptions","organizations_url":"https://api.github.com/users/gabrieldemarmiesse/orgs","repos_url":"https://api.github.com/users/gabrieldemarmiesse/repos","events_url":"https://api.github.com/users/gabrieldemarmiesse/events{/privacy}","received_events_url":"https://api.github.com/users/gabrieldemarmiesse/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T16:37:08Z","updated_at":"2018-11-24T16:37:08Z","author_association":"MEMBER","body":"Please provide a simple script to reproduce. It will be easier to understand what is your use case."}}
{"actor":{"display_login":"gabrieldemarmiesse"}}