{"width":"100%","published":"2019-05-06 19:43:18","blog_title":"IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0","blog_url":"https://aipacommander.com/","author_name":"aipacommander","title":"Tensorflow2\u7cfb\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u30e2\u30c7\u30eb\u306e\u69cb\u9020\u306f\u4fdd\u5b58\u3067\u304d\u306a\u3044","categories":["Tensorflow","Python3"],"type":"rich","description":"import tensorflow as tf class MyModel(tf.keras.Model): def __init__(self, output_node): super(MyModel, self).__init__() self.d1 = tf.keras.layers.Dense(128, activation='relu') self.d2 = tf.keras.layers.Dense(output_node, activation='softmax') def call(self, x): x = self.d1(x) return self.d2(x) \u3053\u3093\u306a\u7c21\u5358\u2026","author_url":"https://blog.hatena.ne.jp/aipacommander/","image_url":null,"url":"https://aipacommander.com/entry/2019/05/06/194318","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faipacommander.com%2Fentry%2F2019%2F05%2F06%2F194318\" title=\"Tensorflow2\u7cfb\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u30e2\u30c7\u30eb\u306e\u69cb\u9020\u306f\u4fdd\u5b58\u3067\u304d\u306a\u3044 - IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","height":"190"}