Closed astonzhang closed 4 years ago
Hey, @astonzhang it's not the training output. I think the train_ch6 function is having a return statement. So while calling the model it's returning the model and thats why it's printing the address of the model. How, about making the train_ch6 without a return statement. @astonzhang @terrytangyuan does this work?
Hiding the return statement will be ideal.
The return
is necessary since we are creating the model object inside the function the model will be used outside of the function scope. We can assign the returned model to a local variable for cases where the return value is not used to hide it from the output.
Sure, can we just hide it from the output?
Reason for closure: https://github.com/d2l-ai/d2l-en/pull/1221
http://preview.d2l.ai.s3-website-us-west-2.amazonaws.com/d2l-en/master/chapter_convolutional-neural-networks/lenet.html
Is there a way to avoid printing unnecessary output for train_ch6 (and possibly other similar functions): <tensorflow.python.keras.engine.sequential.Sequential at 0x7fd94cc7aa50>
@terrytangyuan