# Use integrated gradient without edge attribute

**URL:** <https://discuss.pytorch.org/t/use-integrated-gradient-without-edge-attribute/204593>\
**Category:** Captum\
**Created:** [June 13, 2024, 4:08pm UTC](https://discuss.pytorch.org/t/use-integrated-gradient-without-edge-attribute/204593 "2024-06-13T16:08:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongwei](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/dongwei/32/61405_2.png) [@dongwei](https://discuss.pytorch.org/u/dongwei)\
**Post date:** [June 13, 2024, 4:08pm UTC](https://discuss.pytorch.org/t/use-integrated-gradient-without-edge-attribute/204593/1 "2024-06-13T16:08:42Z")

</div>

Hi! I’m facing a problem: We want to use Integrated gradient(IG) to explain a GCN model. We want to generate edge\_mask for each edge in the network. But this GCN model doesn’t make use of edge attribute during both training and testing.  
So my question is: Can we use IG to explain this model without using edge attribute? Or I can only switch to other explainers?

Thanks so much!
