1 write to _parent
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
770
_parent
= parent;
35 references to _parent
Microsoft.ML.Vision (35)
DnnRetrainTransform.cs (35)
771
_inputColIndices = new int[
_parent
._inputs.Length];
772
_isInputVector = new bool[
_parent
._inputs.Length];
773
_fullySpecifiedShapes = new TensorShape[
_parent
._inputs.Length];
774
for (int i = 0; i <
_parent
._inputs.Length; i++)
776
if (!inputSchema.TryGetColumnIndex(
_parent
._inputs[i], out _inputColIndices[i]))
777
throw Host.ExceptSchemaMismatch(nameof(InputSchema), "source",
_parent
._inputs[i]);
787
var expectedType = Tf2MlNetType(
_parent
._tfInputTypes[i]);
789
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input",
_parent
._inputs[i], expectedType.ToString(), type.ToString());
790
var originalShape =
_parent
._tfInputShapes[i];
812
throw Contracts.Except($"Input shape mismatch: Input '{
_parent
._inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
819
throw Contracts.Except($"Input shape mismatch: Input '{
_parent
._inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
830
if (
_parent
._addBatchDimensionInput)
843
private protected override void SaveModel(ModelSaveContext ctx) =>
_parent
.SaveModel(ctx);
862
var activeOutputColNames =
_parent
._outputs.Where((x, i) => activeOutput(i)).ToArray();
864
var type = Tf2MlNetType(
_parent
._tfOutputTypes[iinfo]).RawType;
865
Host.Assert(type ==
_parent
._outputTypes[iinfo].GetItemType().RawType);
866
var srcTensorGetters = GetTensorValueGetters(input, _inputColIndices, _isInputVector,
_parent
._tfInputTypes, _fullySpecifiedShapes);
874
if (
_parent
._outputTypes[iinfo].IsStandardScalar())
880
var tensor = outputCache.Outputs[
_parent
._outputs[iinfo]];
887
if (
_parent
._tfOutputTypes[iinfo] == TF_DataType.TF_STRING)
893
var tensor = outputCache.Outputs[
_parent
._outputs[iinfo]];
908
var tensor = outputCache.Outputs[
_parent
._outputs[iinfo]];
925
if (
_parent
.Graph.graph_key != tf.get_default_graph().graph_key)
926
_parent
._session.graph.as_default();
928
Runner runner = new Runner(
_parent
._session,
929
_parent
._inputs.Select(x =>
_parent
._idvToTfMapping[x]).ToArray(),
930
_parent
._outputs.Select(x =>
_parent
._idvToTfMapping[x]).ToArray());
933
for (int i = 0; i <
_parent
._inputs.Length; i++)
949
return col => Enumerable.Range(0,
_parent
._outputs.Length).Any(i => activeOutput(i)) && _inputColIndices.Any(i => i == col);
954
var info = new DataViewSchema.DetachedColumn[
_parent
._outputs.Length];
955
for (int i = 0; i <
_parent
._outputs.Length; i++)
956
info[i] = new DataViewSchema.DetachedColumn(
_parent
._outputs[i],
_parent
._outputTypes[i], null);