Exemplo n.º 1
0
 /// <summary>
 /// Makes the ONNX model based on the context.
 /// </summary>
 public ModelProto MakeModel()
 => OnnxUtils.MakeModel(_nodes, _name, _name, _domain, _inputs, _outputs, _intermediateValues);
Exemplo n.º 2
0
 public override string AddInitializer(long value, string name = null)
 {
     name = AddVariable(name ?? "int64");
     _initializers.Add(OnnxUtils.MakeInt64(name, value));
     return(name);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Makes the ONNX model based on the context.
 /// </summary>
 public ModelProto MakeModel()
 => OnnxUtils.MakeModel(_nodes, _producerName, _name, _domain, _producerVersion, _modelVersion, _inputs, _outputs, _intermediateValues);
Exemplo n.º 4
0
 /// Adds constant tensor into the graph.
 public override string AddInitializer(float value, string name = null)
 {
     name = AddVariable(name ?? "float");
     _initializers.Add(OnnxUtils.MakeFloat(name, value));
     return(name);
 }