Hi Mentor,
Here is the output of my model summary after running the notebook:
Generated model:
layer 0: [‘InputLayer’, [(None, 1, 90)], 0]
layer 1: [‘InputLayer’, [(None, 64)], 0]
layer 2: [‘InputLayer’, [(None, 64)], 0]
layer 3: [‘LSTM’, [(None, 64), (None, 64), (None, 64)], 39680, [(None, 1, 90), (None, 64), (None, 64)], ‘tanh’]
layer 4: [‘Dense’, (None, 90), 5850, ‘softmax’]
layer 5: [‘Lambda’, (None,), 0]
layer 6: [‘Lambda’, (None, 90), 0]
layer 7: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 8: [‘Lambda’, (None,), 0]
layer 9: [‘Lambda’, (None, 90), 0]
layer 10: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 11: [‘Lambda’, (None,), 0]
layer 12: [‘Lambda’, (None, 90), 0]
layer 13: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 14: [‘Lambda’, (None,), 0]
layer 15: [‘Lambda’, (None, 90), 0]
layer 16: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 17: [‘Lambda’, (None,), 0]
layer 18: [‘Lambda’, (None, 90), 0]
layer 19: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 20: [‘Lambda’, (None,), 0]
layer 21: [‘Lambda’, (None, 90), 0]
layer 22: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 23: [‘Lambda’, (None,), 0]
layer 24: [‘Lambda’, (None, 90), 0]
layer 25: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 26: [‘Lambda’, (None,), 0]
layer 27: [‘Lambda’, (None, 90), 0]
layer 28: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 29: [‘Lambda’, (None,), 0]
layer 30: [‘Lambda’, (None, 90), 0]
layer 31: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 32: [‘Lambda’, (None,), 0]
layer 33: [‘Lambda’, (None, 90), 0]
layer 34: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 35: [‘Lambda’, (None,), 0]
layer 36: [‘Lambda’, (None, 90), 0]
layer 37: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 38: [‘Lambda’, (None,), 0]
layer 39: [‘Lambda’, (None, 90), 0]
layer 40: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 41: [‘Lambda’, (None,), 0]
layer 42: [‘Lambda’, (None, 90), 0]
layer 43: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 44: [‘Lambda’, (None,), 0]
layer 45: [‘Lambda’, (None, 90), 0]
layer 46: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 47: [‘Lambda’, (None,), 0]
layer 48: [‘Lambda’, (None, 90), 0]
layer 49: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 50: [‘Lambda’, (None,), 0]
layer 51: [‘Lambda’, (None, 90), 0]
layer 52: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 53: [‘Lambda’, (None,), 0]
layer 54: [‘Lambda’, (None, 90), 0]
layer 55: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 56: [‘Lambda’, (None,), 0]
layer 57: [‘Lambda’, (None, 90), 0]
layer 58: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 59: [‘Lambda’, (None,), 0]
layer 60: [‘Lambda’, (None, 90), 0]
layer 61: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 62: [‘Lambda’, (None,), 0]
layer 63: [‘Lambda’, (None, 90), 0]
layer 64: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 65: [‘Lambda’, (None,), 0]
layer 66: [‘Lambda’, (None, 90), 0]
layer 67: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 68: [‘Lambda’, (None,), 0]
layer 69: [‘Lambda’, (None, 90), 0]
layer 70: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 71: [‘Lambda’, (None,), 0]
layer 72: [‘Lambda’, (None, 90), 0]
layer 73: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 74: [‘Lambda’, (None,), 0]
layer 75: [‘Lambda’, (None, 90), 0]
layer 76: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 77: [‘Lambda’, (None,), 0]
layer 78: [‘Lambda’, (None, 90), 0]
layer 79: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 80: [‘Lambda’, (None,), 0]
layer 81: [‘Lambda’, (None, 90), 0]
layer 82: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 83: [‘Lambda’, (None,), 0]
layer 84: [‘Lambda’, (None, 90), 0]
layer 85: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 86: [‘Lambda’, (None,), 0]
layer 87: [‘Lambda’, (None, 90), 0]
layer 88: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 89: [‘Lambda’, (None,), 0]
layer 90: [‘Lambda’, (None, 90), 0]
layer 91: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 92: [‘Lambda’, (None,), 0]
layer 93: [‘Lambda’, (None, 90), 0]
layer 94: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 95: [‘Lambda’, (None,), 0]
layer 96: [‘Lambda’, (None, 90), 0]
layer 97: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 98: [‘Lambda’, (None,), 0]
layer 99: [‘Lambda’, (None, 90), 0]
layer 100: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 101: [‘Lambda’, (None,), 0]
layer 102: [‘Lambda’, (None, 90), 0]
layer 103: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 104: [‘Lambda’, (None,), 0]
layer 105: [‘Lambda’, (None, 90), 0]
layer 106: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 107: [‘Lambda’, (None,), 0]
layer 108: [‘Lambda’, (None, 90), 0]
layer 109: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 110: [‘Lambda’, (None,), 0]
layer 111: [‘Lambda’, (None, 90), 0]
layer 112: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 113: [‘Lambda’, (None,), 0]
layer 114: [‘Lambda’, (None, 90), 0]
layer 115: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 116: [‘Lambda’, (None,), 0]
layer 117: [‘Lambda’, (None, 90), 0]
layer 118: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 119: [‘Lambda’, (None,), 0]
layer 120: [‘Lambda’, (None, 90), 0]
layer 121: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 122: [‘Lambda’, (None,), 0]
layer 123: [‘Lambda’, (None, 90), 0]
layer 124: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 125: [‘Lambda’, (None,), 0]
layer 126: [‘Lambda’, (None, 90), 0]
layer 127: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 128: [‘Lambda’, (None,), 0]
layer 129: [‘Lambda’, (None, 90), 0]
layer 130: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 131: [‘Lambda’, (None,), 0]
layer 132: [‘Lambda’, (None, 90), 0]
layer 133: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 134: [‘Lambda’, (None,), 0]
layer 135: [‘Lambda’, (None, 90), 0]
layer 136: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 137: [‘Lambda’, (None,), 0]
layer 138: [‘Lambda’, (None, 90), 0]
layer 139: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 140: [‘Lambda’, (None,), 0]
layer 141: [‘Lambda’, (None, 90), 0]
layer 142: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 143: [‘Lambda’, (None,), 0]
layer 144: [‘Lambda’, (None, 90), 0]
layer 145: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 146: [‘Lambda’, (None,), 0]
layer 147: [‘Lambda’, (None, 90), 0]
layer 148: [‘RepeatVector’, (None, 1, 90), 0, 1]
layer 149: [‘Lambda’, (None,), 0]
layer 150: [‘Lambda’, (None, 90), 0]
layer 151: [‘RepeatVector’, (None, 1, 90), 0, 1]
When I run the test, I get the following error:
Test failed at index 5
Expected value [‘TensorFlowOpLayer’, [(None,)], 0]
does not match the input value: [‘Lambda’, (None,), 0]
My model generates 151 layers, which matches the expected number, but at some indices I see ‘Lambda’ layers instead of ‘TensorFlowOpLayer’. The outputs and shapes are all correct, and my code matches the assignment instructions.
Is this difference in layer types possibly due to the TensorFlow/Keras version used in the notebook? Please let me know if I need to make further changes Thanks!