Skip to content

Conversation

@parjong
Copy link
Owner

@parjong parjong commented Apr 2, 2022

Let's design and implement a NN model characteristics analysis toolkit.

Signed-off-by: Jonghyun Park parjong@gmail.com

@parjong parjong force-pushed the draft/roofline_v2 branch 3 times, most recently from 723e003 to 593fbc0 Compare April 2, 2022 09:45
assert operator.OutputsLength() == 1
ofm_idx = operator.Outputs(0)

# Q. Is it possible to enumerate defined fields in conv2d_options?
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is possible (with minor hack). See mas.


class OperationTranslatorRegistry:
def __init__(self):
# Let's port this part to user-level scripts
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key difference between rfl-model-analyze and mas.

out = tf.transpose(inp)

tfgex_set_inputs(inp)
tfgex_set_outputs(out)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it a bit interesting that a .tflite built from this .tfgex file does not have TransposeOptions... ``)

@parjong parjong force-pushed the draft/roofline_v2 branch from 593fbc0 to 33930de Compare April 3, 2022 07:23
@parjong parjong force-pushed the draft/roofline_v2 branch 2 times, most recently from 967f720 to 9ec4931 Compare April 3, 2022 08:46
rules['CONV_2D'] = conv2d
rules['DEPTHWISE_CONV_2D'] = dconv2d_ref
rules['FULLY_CONNECTED'] = fully_connected
rules['LEAKY_RELU'] = unimplemented
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#79

ScalarField('AsymmetricQuantizeInputs'),
]
opschema['LEAKY_RELU'] = [
ScalarField('Alpha'),
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#79

@parjong parjong force-pushed the draft/roofline_v2 branch 3 times, most recently from 70c12c1 to 99f1509 Compare April 3, 2022 11:01
return self.id.src == ModelInput

def is_model_const(self):
return self.id.src == ModelConst
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#80

wgt_size += mas.model.value(wgt_value_id).byte_size

info(f'Effetive weight size is {wgt_size} bytes')
mas.set_attr('basic.wsize', wgt_size)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#80

@parjong parjong force-pushed the draft/roofline_v2 branch 8 times, most recently from b9c0ce7 to 8b094b1 Compare April 10, 2022 23:03
@parjong parjong force-pushed the draft/roofline_v2 branch from 8b094b1 to fb39b1f Compare April 16, 2022 06:29
@parjong parjong force-pushed the draft/roofline_v2 branch 10 times, most recently from 6dbc189 to 0843655 Compare April 19, 2022 15:06
@parjong parjong force-pushed the draft/roofline_v2 branch 3 times, most recently from 3c8f46b to f1268a8 Compare April 24, 2022 10:06
Let's design and implement a NN model characteristics analysis toolkit.
[ci skip]

Signed-off-by: Jonghyun Park <parjong@gmail.com>
@parjong parjong force-pushed the draft/roofline_v2 branch from f1268a8 to b59bd70 Compare October 8, 2022 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants