# Grader error in create\_batch\_dataset function

**URL:** <https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042>\
**Category:** NLP with Sequence Models\
**Tags:** week-module-2\
**Created:** [December 20, 2023, 7:50am UTC](https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042 "2023-12-20T07:50:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TANISHA\_KAUR](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@TANISHA\_KAUR](https://community.deeplearning.ai/u/TANISHA_KAUR)\
**Post date:** [December 20, 2023, 7:50am UTC](https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042/1 "2023-12-20T07:50:48Z")

</div>

It shows grader error and for some reason GRULM isn’t being graded either even if all the test cases are passed

---

<div class="post-metadata">

**Author:** ![a-zarta](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/a-zarta/32/162492_2.png) [@a-zarta](https://community.deeplearning.ai/u/a-zarta)\
**Post date:** [December 20, 2023, 3:31pm UTC](https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042/2 "2023-12-20T15:31:46Z")

</div>

Hi @TANISHA_KAUR, send me your notebook via DM and I’ll take a look.

---

<div class="post-metadata">

**Author:** ![a-zarta](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/a-zarta/32/162492_2.png) [@a-zarta](https://community.deeplearning.ai/u/a-zarta)\
**Post date:** [December 21, 2023, 2:53pm UTC](https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042/3 "2023-12-21T14:53:29Z")

</div>

So I took a look and `create_batch_dataset` does have an error. When defining `all_ids`, you want to pass in a string and not a list to `line_to_tensor`.

As for `GRULM` this is an error on our side. When defining the activation function please use ` tf.nn.log_softmax` and you should get full grade. We will patch the grader to fix this.

---

<div class="post-metadata">

**Author:** ![TANISHA\_KAUR](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@TANISHA\_KAUR](https://community.deeplearning.ai/u/TANISHA_KAUR)\
**Post date:** [December 22, 2023, 5:21am UTC](https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042/4 "2023-12-22T05:21:35Z")

</div>

Thank you so much, my error has been resolved!!

---

<div class="post-metadata">

**Author:** ![TANISHA\_KAUR](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@TANISHA\_KAUR](https://community.deeplearning.ai/u/TANISHA_KAUR)\
**Post date:** [December 22, 2023, 8:54am UTC](https://community.deeplearning.ai/t/grader-error-in-create-batch-dataset-function/523042/5 "2023-12-22T08:54:40Z")

</div>

{Assignment notebook removed by moderator, against community guidelines}  
I am getting an error in the translate function in the Course 4 Week 1’s assignment
