2

Why and when do we use self.parse()?

I've seen this in few functions when I was going through the code of tensorflow's- darkflow

source where I found this: https://github.com/thtrieu/darkflow/blob/master/darkflow/net/yolo/data.py

Sujith Royal
  • 762
  • 10
  • 9

2 Answers2

2

self.parse is simply a variable name you declared in your code, or could be a function you declared in your code.

You do:

print(self.parse)

Output will be it's value.

U13-Forward
  • 69,221
  • 14
  • 89
  • 114
0

self.parse calls a function called parse (it must be defined in code or in a library) on its own value or output.

samar2170
  • 57
  • 1
  • 1
  • 7