Coder Social home page Coder Social logo

关于图3-12 b about graphneuralnetwork HOT 5 CLOSED

fighterlyl avatar fighterlyl commented on August 16, 2024
关于图3-12 b

from graphneuralnetwork.

Comments (5)

FighterLYL avatar FighterLYL commented on August 16, 2024

我确认了下应该为 5 x 5,你可以参考pytorch的文档 ConvTranspose2d,
一个简单的测试代码:

import torch
import torch.nn as nn
conv_transpose = nn.ConvTranspose2d(1, 1, 3, stride=2, dilation=1)
x = torch.rand(1, 1, 2, 2)
y = conv_transpose(x)
print(y.size())   # [1, 1, 5, 5]

from graphneuralnetwork.

hunauchenym avatar hunauchenym commented on August 16, 2024

是不是通过填充元素后,步长变为1了?

from graphneuralnetwork.

FighterLYL avatar FighterLYL commented on August 16, 2024

首先转置卷积中的stride的概念与卷积中有所不同,另一方面转置卷积就是要增加输出的大小,因此卷积的步长应该都是1,否则没法保证输出的大小

from graphneuralnetwork.

hunauchenym avatar hunauchenym commented on August 16, 2024

好像padding的概念也不一样,真正的padding大小为k-1-p?h'=k+2(k-1-p)?

from graphneuralnetwork.

FighterLYL avatar FighterLYL commented on August 16, 2024

是的,真正padding的大小为k-1-p,具体的计算公式参考上面的pytorch文档。

from graphneuralnetwork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.