本文整理汇总了Python中treeano.nodes.check_serialization函数的典型用法代码示例。如果您正苦于以下问题:Python check_serialization函数的具体用法?Python check_serialization怎么用?Python check_serialization使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_serialization函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_add_bias_node_serialization
def test_add_bias_node_serialization():
tn.check_serialization(tn.AddBiasNode("a"))
tn.check_serialization(tn.AddBiasNode(
"a",
inits=[],
# need to make broadcastable a list because json (de)serialization
# converts tuples to lists
broadcastable=[True, False, True]))
示例2: test_remove_axis_node_serialization
def test_remove_axis_node_serialization():
tn.check_serialization(bf.RemoveAxisNode("b"))
示例3: test_total_cost_node_serialization
def test_total_cost_node_serialization():
tn.check_serialization(tn.TotalCostNode(
"foo",
{"pred": tn.IdentityNode("foo"),
"target": tn.IdentityNode("bar")}))
示例4: test_aggregator_node_serialization
def test_aggregator_node_serialization():
tn.check_serialization(tn.AggregatorNode("a"))
示例5: test_equilibrated_sgd_node_serialization
def test_equilibrated_sgd_node_serialization():
tn.check_serialization(equilibrated_sgd.EquilibratedSGDNode("a"))
示例6: test_tile_node_serialization
def test_tile_node_serialization():
tn.check_serialization(tn.TileNode("a"))
tn.check_serialization(tn.TileNode("a", reps=[1, 2, 3]))
示例7: test_output_hyperparameter_node_serialization
def test_output_hyperparameter_node_serialization():
tn.check_serialization(tn.OutputHyperparameterNode("a"))
示例8: test_spatial_dropout_node_serialization
def test_spatial_dropout_node_serialization():
tn.check_serialization(tn.SpatialDropoutNode("a"))
tn.check_serialization(tn.SpatialDropoutNode("a", p=0.5))
示例9: test_dense_combine_node_serialization
def test_dense_combine_node_serialization():
tn.check_serialization(tn.DenseCombineNode("a", []))
tn.check_serialization(tn.DenseCombineNode("a", [], num_units=100))
示例10: test_dense_node_serialization
def test_dense_node_serialization():
tn.check_serialization(tn.DenseNode("a"))
tn.check_serialization(tn.DenseNode("a", num_units=100))
示例11: test_auxiliary_dense_softmax_cce_node_serialization
def test_auxiliary_dense_softmax_cce_node_serialization():
tn.check_serialization(tn.AuxiliaryDenseSoftmaxCCENode("a", {}))
tn.check_serialization(tn.AuxiliaryDenseSoftmaxCCENode(
"a", {}, num_units=100))
示例12: test_prelu_node_serialization
def test_prelu_node_serialization():
tn.check_serialization(prelu.PReLUNode("a"))
示例13: test_partition_axis_node_serialization
def test_partition_axis_node_serialization():
tn.check_serialization(partition_axis.PartitionAxisNode("a"))
示例14: test_print_node_serialization
def test_print_node_serialization():
tn.check_serialization(tn.PrintNode("a"))
示例15: test_smorms3_node_serialization
def test_smorms3_node_serialization():
tn.check_serialization(smorms3.SMORMS3Node("a"))