You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~\anaconda3\Lib\site-packages\keras\src\ops\operation.py:266, in Operation.output(self)
256 @Property
257 def output(self):
258 """Retrieves the output tensor(s) of a layer.
259
260 Only returns the tensor(s) corresponding to the first time
(...)
264 Output tensor or list of output tensors.
265 """
--> 266 return self._get_node_attribute_at_index(0, "output_tensors", "output")
File ~\anaconda3\Lib\site-packages\keras\src\ops\operation.py:285, in Operation._get_node_attribute_at_index(self, node_index, attr, attr_name)
269 """Private utility to retrieves an attribute (e.g. inputs) from a node.
270
271 This is used to implement the properties:
(...)
282 The operation's attribute attr at the node of index node_index.
283 """
284 if not self._inbound_nodes:
--> 285 raise ValueError(
286 f"The layer {self.name} has never been called "
287 f"and thus has no defined {attr_name}."
288 )
289 if not len(self._inbound_nodes) > node_index:
290 raise ValueError(
291 f"Asked to get {attr_name} at node "
292 f"{node_index}, but the operation has only "
293 f"{len(self._inbound_nodes)} inbound nodes."
294 )
ValueError: The layer sequential_2 has never been called and thus has no defined output.
The text was updated successfully, but these errors were encountered:
ValueError Traceback (most recent call last)
Cell In[4], line 12
1 from act_train_rhythm import *;
3 train_params_p2 = {
4 "divisor" : 4,
5 "train_epochs" : 16,
(...)
10 "data_split_count" : 80
11 };
---> 12 model_p2 = step2_build_model()
File ~\Downloads\osumapper-master\v7.0\act_train_rhythm.py:234, in step2_build_model()
233 def step2_build_model():
--> 234 model_v7 = build_model();
235 return model_v7
File ~\Downloads\osumapper-master\v7.0\act_train_rhythm.py:192, in build_model()
190 plt.figure()
191 plt.xlabel('Epoch')
--> 192 plt.ylabel('Mean Abs Error [Limitless]')
193 plt.plot(history.epoch, np.array(history.history['mean_absolute_error']),
194 label='Train MAE')
195 plt.plot(history.epoch, np.array(history.history['val_mean_absolute_error']),
196 label = 'Val MAE')
File ~\anaconda3\Lib\site-packages\keras\src\ops\operation.py:266, in Operation.output(self)
256 @Property
257 def output(self):
258 """Retrieves the output tensor(s) of a layer.
259
260 Only returns the tensor(s) corresponding to the first time
(...)
264 Output tensor or list of output tensors.
265 """
--> 266 return self._get_node_attribute_at_index(0, "output_tensors", "output")
File ~\anaconda3\Lib\site-packages\keras\src\ops\operation.py:285, in Operation._get_node_attribute_at_index(self, node_index, attr, attr_name)
269 """Private utility to retrieves an attribute (e.g. inputs) from a node.
270
271 This is used to implement the properties:
(...)
282 The operation's attribute
attr
at the node of indexnode_index
.283 """
284 if not self._inbound_nodes:
--> 285 raise ValueError(
286 f"The layer {self.name} has never been called "
287 f"and thus has no defined {attr_name}."
288 )
289 if not len(self._inbound_nodes) > node_index:
290 raise ValueError(
291 f"Asked to get {attr_name} at node "
292 f"{node_index}, but the operation has only "
293 f"{len(self._inbound_nodes)} inbound nodes."
294 )
ValueError: The layer sequential_2 has never been called and thus has no defined output.
The text was updated successfully, but these errors were encountered: