# Assign value to a placeholder

**URL:** <https://community.konduit.ai/t/assign-value-to-a-placeholder/2633>\
**Category:** SameDiff\
**Created:** [June 14, 2023, 1:17pm UTC](https://community.konduit.ai/t/assign-value-to-a-placeholder/2633 "2023-06-14T13:17:44Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![adonnini](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adonnini](https://community.konduit.ai/u/adonnini)\
**Post date:** [June 15, 2023, 10:55pm UTC](https://community.konduit.ai/t/assign-value-to-a-placeholder/2633/10 "2023-06-15T22:55:38Z")

</div>

I understand. Yet, execution fails because of the change in #timeSteps from one iteration to the next. You saw the error message.

I thought that defining the weight variable as a placeholder would resolve the problem. However, I don’t know how to assign a value to a placeholder variable.

I thought you suggested to take the approach of defining weights as a placeholder in this thread:

> [@Reduce rank and set values according to 3rd dimension](https://community.konduit.ai/t/reduce-rank-and-set-values-according-to-3rd-dimension/2029):
>
> [[[1,0,0,0],[0,1,0,0],[0,0,1,0]], [[1,0,0,0],[0,1,0,0],[0,0,1,0]] ] How to get below result from above SDVariable? Reduce 3rd dimension, and the value = 0.1 when 1 exists in the first or 2rd position, otherwise value = 1. [[0.1,0.1,1], [0.1,0.1,1] ]

---

_[View the full topic](https://community.konduit.ai/t/assign-value-to-a-placeholder/2633)._
