as first layer in a sequential model: # as first layer in a sequential model: model ... add a x -> x^2 layer model.add(Lambda(lambda x: x ** 2))
確定! 回上一頁