Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create layer by shape #152

Closed
syt123450 opened this issue Dec 9, 2018 · 1 comment
Closed

Create layer by shape #152

syt123450 opened this issue Dec 9, 2018 · 1 comment
Assignees

Comments

@syt123450
Copy link
Member

syt123450 commented Dec 9, 2018

Make TensorSpace's layer can be created by directly given the shape. For example:

let depthwiseConv2d = new TSP.DepthwiseConv2d({
    shape: [28, 28, 32],
    name: "depthwise_1"
});
@syt123450
Copy link
Member Author

For 1d layer, use config:

{
    shape: [ 28 ]
}

For 2d layer, use config:

{
    shape: [ 28, 28 ]
}

For 3d layer, use config:

{
    shape: [ 28, 28, 3 ]
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant