Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/run_pretrained_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def run_onnxruntime(self, name, model_proto, inputs, outputs, external_tensor_st
logger.info("Model saved to %s", model_path)
opt = rt.SessionOptions()
if self.use_custom_ops:
from ortcustomops import get_library_path
from onnxruntime_extensions import get_library_path
opt.register_custom_ops_library(get_library_path())
m = rt.InferenceSession(model_path, opt)
if self.ort_profile is not None:
Expand Down
7 changes: 7 additions & 0 deletions tf2onnx/onnx_opset/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ def version_1(cls, ctx, node, **kwargs):
ctx.replace_all_inputs(output_name, input_name) # ops=ctx.get_nodes()


@tf_op("EnsureShape")
class EnsureShape:
@classmethod
def version_1(cls, ctx, node, **kwargs):
node.type = "Identity"


@tf_op("Reshape")
class Reshape:
@classmethod
Expand Down