text:
An op called "int" appears in Tensorflow

Hello:
      I am redeveloping Tensorflow's part on XLA., but when I import ortools in //tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use source code support that supports XLA optimization options, but when running model reasoning A very strange exception occurred. An op named "int" appeared in the op-registered op. This caused the program to exit abnormally. However, I didn't find the op macro definition for int in the entire source file. I canceled me. All source code changes, just import ortools will reproduce this situation, cancel the import is normal, so I am sure this problem is caused by the ortools import, but I am not sure how to solve this problem,and I am not sure if Tensorflow and Ortools are in conflict
Tensorflow version: 1.14.0
ortools version: v7.2
This is a change to //tensorflow/compiler/xla/service/cpu:cpu_compiler:
    name = "cpu_compiler",
    srcs = ["cpu_compiler.cc"],
    hdrs = ["cpu_compiler.h"],
    deps = [
        ":compiler_functor",
        ":buffer_info_util",
        ":conv_canonicalization",
        ":cpu_executable",
        ":cpu_hlo_support_checker",
        ":cpu_instruction_fusion",
        ":cpu_layout_assignment",
        ":cpu_options",
        ":disassembler",
        ":dot_op_emitter",
        ":ir_emission_utils",
        ":ir_emitter",
        ":parallel_task_assignment",
        ":simple_orc_jit",
        "@com_google_absl//absl/memory",
        "@com_google_absl//absl/strings",
        ":target_machine_features",
        "@com_google_absl//absl/types:span",
        "//tensorflow/compiler/xla/service:copy_insertion",
        "//tensorflow/compiler/xla/service:hlo_casting_utils",
        "//tensorflow/compiler/xla/service:dump",
        "//tensorflow/compiler/xla/service:map_inliner",
        "//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter",
        "//tensorflow/compiler/xla/service:conditional_to_select",
        "//tensorflow/compiler/xla/service:scatter_expander",
        "//tensorflow/compiler/xla/service:slice_sinker",
        "//tensorflow/compiler/xla:cpu_function_runtime",
        "//tensorflow/compiler/xla:literal",
        "//tensorflow/compiler/xla:protobuf_util",
        "//tensorflow/compiler/xla:status_macros",
        "//tensorflow/compiler/xla:statusor",
        "//tensorflow/compiler/xla:types",
        "//tensorflow/compiler/xla:util",
        "//tensorflow/compiler/xla:xla_data_proto",
        "//tensorflow/compiler/xla/service:algebraic_simplifier",
        "//tensorflow/compiler/xla/service:batch_dot_simplification",
        "//tensorflow/compiler/xla/service:batchnorm_expander",
        "//tensorflow/compiler/xla/service:buffer_assignment",
        "//tensorflow/compiler/xla/service:buffer_liveness",
        "//tensorflow/compiler/xla/service:call_inliner",
        "//tensorflow/compiler/xla/service:cholesky_expander",
        "//tensorflow/compiler/xla/service:conditional_simplifier",
        "//tensorflow/compiler/xla/service:convolution_group_converter",
        "//tensorflow/compiler/xla/service:dot_decomposer",
        "//tensorflow/compiler/xla/service:dynamic_index_splitter",
        "//tensorflow/compiler/xla/service:executable",
        "//tensorflow/compiler/xla/service:flatten_call_graph",
        "//tensorflow/compiler/xla/service:hlo",
        "//tensorflow/compiler/xla/service:hlo_constant_folding",
        "//tensorflow/compiler/xla/service:hlo_cse",
        "//tensorflow/compiler/xla/service:hlo_dce",
        "//tensorflow/compiler/xla/service:hlo_element_type_converter",
        "//tensorflow/compiler/xla/service:hlo_ordering",
        "//tensorflow/compiler/xla/service:hlo_pass",
        "//tensorflow/compiler/xla/service:hlo_pass_pipeline",
        "//tensorflow/compiler/xla/service:hlo_proto",
        "//tensorflow/compiler/xla/service:hlo_proto_util",
        "//tensorflow/compiler/xla/service:hlo_memory_scheduler",
        "//tensorflow/compiler/xla/service:hlo_subcomputation_unification",
        "//tensorflow/compiler/xla/service:hlo_verifier",
        "//tensorflow/compiler/xla/service:indexed_array_analysis",
        "//tensorflow/compiler/xla/service:llvm_compiler",
        "//tensorflow/compiler/xla/service:reduce_precision_insertion",
        "//tensorflow/compiler/xla/service:reshape_mover",
        "//tensorflow/compiler/xla/service:rng_expander",
        "//tensorflow/compiler/xla/service:sort_simplifier",
        "//tensorflow/compiler/xla/service:transpose_folding",
        "//tensorflow/compiler/xla/service:triangular_solve_expander",
        "//tensorflow/compiler/xla/service:tuple_simplifier",
        "//tensorflow/compiler/xla/service:while_loop_constant_sinking",
        "//tensorflow/compiler/xla/service:while_loop_invariant_code_motion",
        "//tensorflow/compiler/xla/service:while_loop_simplifier",
        "//tensorflow/compiler/xla/service:zero_sized_hlo_elimination",
        "//tensorflow/compiler/xla/service/llvm_ir:llvm_util",  # fixdeps: keep
        "//tensorflow/core:lib",  # fixdeps: keep
        "//tensorflow/core:stream_executor_no_cuda",
        "@llvm//:aarch64_code_gen",  # fixdeps: keep
        "@llvm//:aarch64_disassembler",  # fixdeps: keep
        "@llvm//:arm_code_gen",  # fixdeps: keep
        "@llvm//:arm_disassembler",  # fixdeps: keep
        "@llvm//:core",
        "@llvm//:mc",  # fixdeps: keep
        "@llvm//:object",
        "@llvm//:support",
        "@llvm//:target",  # fixdeps: keep
        "@llvm//:x86_code_gen",  # fixdeps: keep
        "@llvm//:x86_disassembler",  # fixdeps: keep
        "@com_google_ortools//ortools/constraint_solver:cp",
    ] + select({
        "//tensorflow:linux_ppc64le": [
            "@llvm//:powerpc_disassembler",
            "@llvm//:powerpc_code_gen",
        ],
        "//conditions:default": [
        ],
    }),
    alwayslink = True,  # Contains compiler registration
)

This is the op exception thrown by Tensorflow using the import ortools source code compiled by the installation package.
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.

2019-11-07 12:34:35.603510: F tensorflow/core/framework/op.cc:206] Non-OK-status: RegisterAlreadyLocked(deferred_[i]) status: Invalid argument: Invalid name: int (Did you use CamelCase?); in OpDef: name: "int" input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } attr { name: "int" type: "int" default_value { i: -1 } description: "int" has_minimum: true minimum: -1 } attr { name: "int" type: "int" default_value { s: "" } description: "int" } attr { name: "int" type: "int" description: "int" } attr { name: "int" type: "int" description: "int" } summary: "int" description: "int" is_stateful: true
Fatal Python error: Aborted

Can you try with or-tools 7.4 instead of 7.2 ?
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le jeu. 7 nov. 2019 à 13:57, Gave notifications@github.com a écrit :

Hello:
I am redeveloping Tensorflow's part on XLA., but when I import
ortools in //tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use
source code support that supports XLA optimization options, but when
running model reasoning A very strange exception occurred. An op named
"int" appeared in the op-registered op. This caused the program to exit
abnormally. However, I didn't find the op macro definition for int in the
entire source file. I canceled me. All source code changes, just import
ortools will reproduce this situation, cancel the import is normal, so I am
sure this problem is caused by the ortools import, but I am not sure how to
solve this problem,and I am not sure if Tensorflow and Ortools are in
conflict
Tensorflow version: 1.14.0
ortools version: v7.2
This is a change to //tensorflow/compiler/xla/service/cpu:cpu_compiler:
cc_library( name = "cpu_compiler", srcs = ["cpu_compiler.cc"], hdrs =
["cpu_compiler.h"], deps = [ ":compiler_functor", ":buffer_info_util",
":conv_canonicalization", ":cpu_executable", ":cpu_hlo_support_checker",
":cpu_instruction_fusion", ":cpu_layout_assignment", ":cpu_options",
":disassembler", ":dot_op_emitter", ":ir_emission_utils", ":ir_emitter",
":parallel_task_assignment", ":simple_orc_jit",
"@com_google_absl//absl/memory", "@com_google_absl//absl/strings",
":target_machine_features", "@com_google_absl//absl/types:span",
"//tensorflow/compiler/xla/service:copy_insertion",
"//tensorflow/compiler/xla/service:hlo_casting_utils",
"//tensorflow/compiler/xla/service:dump",
"//tensorflow/compiler/xla/service:map_inliner",
"//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter",
"//tensorflow/compiler/xla/service:conditional_to_select",
"//tensorflow/compiler/xla/service:scatter_expander",
"//tensorflow/compiler/xla/service:slice_sinker",
"//tensorflow/compiler/xla:cpu_function_runtime",
"//tensorflow/compiler/xla:literal",
"//tensorflow/compiler/xla:protobuf_util",
"//tensorflow/compiler/xla:status_macros",
"//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types",
"//tensorflow/compiler/xla:util",
"//tensorflow/compiler/xla:xla_data_proto",
"//tensorflow/compiler/xla/service:algebraic_simplifier",
"//tensorflow/compiler/xla/service:batch_dot_simplification",
"//tensorflow/compiler/xla/service:batchnorm_expander",
"//tensorflow/compiler/xla/service:buffer_assignment",
"//tensorflow/compiler/xla/service:buffer_liveness",
"//tensorflow/compiler/xla/service:call_inliner",
"//tensorflow/compiler/xla/service:cholesky_expander",
"//tensorflow/compiler/xla/service:conditional_simplifier",
"//tensorflow/compiler/xla/service:convolution_group_converter",
"//tensorflow/compiler/xla/service:dot_decomposer",
"//tensorflow/compiler/xla/service:dynamic_index_splitter",
"//tensorflow/compiler/xla/service:executable",
"//tensorflow/compiler/xla/service:flatten_call_graph",
"//tensorflow/compiler/xla/service:hlo",
"//tensorflow/compiler/xla/service:hlo_constant_folding",
"//tensorflow/compiler/xla/service:hlo_cse",
"//tensorflow/compiler/xla/service:hlo_dce",
"//tensorflow/compiler/xla/service:hlo_element_type_converter",
"//tensorflow/compiler/xla/service:hlo_ordering",
"//tensorflow/compiler/xla/service:hlo_pass",
"//tensorflow/compiler/xla/service:hlo_pass_pipeline",
"//tensorflow/compiler/xla/service:hlo_proto",
"//tensorflow/compiler/xla/service:hlo_proto_util",
"//tensorflow/compiler/xla/service:hlo_memory_scheduler",
"//tensorflow/compiler/xla/service:hlo_subcomputation_unification",
"//tensorflow/compiler/xla/service:hlo_verifier",
"//tensorflow/compiler/xla/service:indexed_array_analysis",
"//tensorflow/compiler/xla/service:llvm_compiler",
"//tensorflow/compiler/xla/service:reduce_precision_insertion",
"//tensorflow/compiler/xla/service:reshape_mover",
"//tensorflow/compiler/xla/service:rng_expander",
"//tensorflow/compiler/xla/service:sort_simplifier",
"//tensorflow/compiler/xla/service:transpose_folding",
"//tensorflow/compiler/xla/service:triangular_solve_expander",
"//tensorflow/compiler/xla/service:tuple_simplifier",
"//tensorflow/compiler/xla/service:while_loop_constant_sinking",
"//tensorflow/compiler/xla/service:while_loop_invariant_code_motion",
"//tensorflow/compiler/xla/service:while_loop_simplifier",
"//tensorflow/compiler/xla/service:zero_sized_hlo_elimination",
"//tensorflow/compiler/xla/service/llvm_ir:llvm_util", # fixdeps: keep
"//tensorflow/core:lib", # fixdeps: keep
"//tensorflow/core:stream_executor_no_cuda", "@llvm//:aarch64_code_gen", #
fixdeps: keep "@llvm//:aarch64_disassembler", # fixdeps: keep
"@llvm//:arm_code_gen", # fixdeps: keep "@llvm//:arm_disassembler", #
fixdeps: keep "@llvm//:core", "@llvm//:mc", # fixdeps: keep
"@llvm//:object", "@llvm//:support", "@llvm//:target", # fixdeps: keep
"@llvm//:x86_code_gen", # fixdeps: keep "@llvm//:x86_disassembler", #
fixdeps: keep "@com_google_ortools//ortools/constraint_solver:cp", ] +
select({ "//tensorflow:linux_ppc64le": [ "@llvm//:powerpc_disassembler",
"@llvm//:powerpc_code_gen", ], "//conditions:default": [ ], }), alwayslink
= True, # Contains compiler registration )
This is the op exception thrown by Tensorflow using the import ortools
source code compiled by the installation package.
`/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name
tf.logging.set_verbosity is deprecated. Please use
tf.compat.v1.logging.set_verbosity instead.
2019-11-07 12:34:35.603510: F tensorflow/core/framework/op.cc:206]
Non-OK-status: RegisterAlreadyLocked(deferred_[i]) status: Invalid
argument: Invalid name: int (Did you use CamelCase?); in OpDef: name: "int"
input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int"
number_attr: "int" type_list_attr: "int" } input_arg { name: "int"
description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int"
type_list_attr: "int" } attr { name: "int" type: "int" default_value { i:
-1 } description: "int" has_minimum: true minimum: -1 } attr { name: "int"
type: "int" default_value { s: "" } description: "int" } attr { name: "int"
type: "int" description: "int" } attr { name: "int" type: "int"
description: "int" } summary: "int" description: "int" is_stateful: true
Fatal Python error: Aborted
`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1696?email_source=notifications&email_token=ACUPL3LAZ5VFERELXWY7AU3QSQGEZA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXTEMEA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3PX5G4GETNWEK4Y563QSQGEZANCNFSM4JKGHMWA
.

Can you try with or-tools 7.4 instead of 7.2 ? Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00 Le jeu. 7 nov. 2019 à 13:57, Gave notifications@github.com a écrit :
…
Hello: I am redeveloping Tensorflow's part on XLA., but when I import ortools in //tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use source code support that supports XLA optimization options, but when running model reasoning A very strange exception occurred. An op named "int" appeared in the op-registered op. This caused the program to exit abnormally. However, I didn't find the op macro definition for int in the entire source file. I canceled me. All source code changes, just import ortools will reproduce this situation, cancel the import is normal, so I am sure this problem is caused by the ortools import, but I am not sure how to solve this problem,and I am not sure if Tensorflow and Ortools are in conflict Tensorflow version: 1.14.0 ortools version: v7.2 This is a change to //tensorflow/compiler/xla/service/cpu:cpu_compiler: cc_library( name = "cpu_compiler", srcs = ["cpu_compiler.cc"], hdrs = ["cpu_compiler.h"], deps = [ ":compiler_functor", ":buffer_info_util", ":conv_canonicalization", ":cpu_executable", ":cpu_hlo_support_checker", ":cpu_instruction_fusion", ":cpu_layout_assignment", ":cpu_options", ":disassembler", ":dot_op_emitter", ":ir_emission_utils", ":ir_emitter", ":parallel_task_assignment", ":simple_orc_jit", @._google_absl//absl/memory", @._google_absl//absl/strings", ":target_machine_features", @._google_absl//absl/types:span", "//tensorflow/compiler/xla/service:copy_insertion", "//tensorflow/compiler/xla/service:hlo_casting_utils", "//tensorflow/compiler/xla/service:dump", "//tensorflow/compiler/xla/service:map_inliner", "//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter", "//tensorflow/compiler/xla/service:conditional_to_select", "//tensorflow/compiler/xla/service:scatter_expander", "//tensorflow/compiler/xla/service:slice_sinker", "//tensorflow/compiler/xla:cpu_function_runtime", "//tensorflow/compiler/xla:literal", "//tensorflow/compiler/xla:protobuf_util", "//tensorflow/compiler/xla:status_macros", "//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto", "//tensorflow/compiler/xla/service:algebraic_simplifier", "//tensorflow/compiler/xla/service:batch_dot_simplification", "//tensorflow/compiler/xla/service:batchnorm_expander", "//tensorflow/compiler/xla/service:buffer_assignment", "//tensorflow/compiler/xla/service:buffer_liveness", "//tensorflow/compiler/xla/service:call_inliner", "//tensorflow/compiler/xla/service:cholesky_expander", "//tensorflow/compiler/xla/service:conditional_simplifier", "//tensorflow/compiler/xla/service:convolution_group_converter", "//tensorflow/compiler/xla/service:dot_decomposer", "//tensorflow/compiler/xla/service:dynamic_index_splitter", "//tensorflow/compiler/xla/service:executable", "//tensorflow/compiler/xla/service:flatten_call_graph", "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service:hlo_constant_folding", "//tensorflow/compiler/xla/service:hlo_cse", "//tensorflow/compiler/xla/service:hlo_dce", "//tensorflow/compiler/xla/service:hlo_element_type_converter", "//tensorflow/compiler/xla/service:hlo_ordering", "//tensorflow/compiler/xla/service:hlo_pass", "//tensorflow/compiler/xla/service:hlo_pass_pipeline", "//tensorflow/compiler/xla/service:hlo_proto", "//tensorflow/compiler/xla/service:hlo_proto_util", "//tensorflow/compiler/xla/service:hlo_memory_scheduler", "//tensorflow/compiler/xla/service:hlo_subcomputation_unification", "//tensorflow/compiler/xla/service:hlo_verifier", "//tensorflow/compiler/xla/service:indexed_array_analysis", "//tensorflow/compiler/xla/service:llvm_compiler", "//tensorflow/compiler/xla/service:reduce_precision_insertion", "//tensorflow/compiler/xla/service:reshape_mover", "//tensorflow/compiler/xla/service:rng_expander", "//tensorflow/compiler/xla/service:sort_simplifier", "//tensorflow/compiler/xla/service:transpose_folding", "//tensorflow/compiler/xla/service:triangular_solve_expander", "//tensorflow/compiler/xla/service:tuple_simplifier", "//tensorflow/compiler/xla/service:while_loop_constant_sinking", "//tensorflow/compiler/xla/service:while_loop_invariant_code_motion", "//tensorflow/compiler/xla/service:while_loop_simplifier", "//tensorflow/compiler/xla/service:zero_sized_hlo_elimination", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", # fixdeps: keep "//tensorflow/core:lib", # fixdeps: keep "//tensorflow/core:stream_executor_no_cuda", @.//:aarch64_code_gen", # fixdeps: keep @.//:aarch64_disassembler", # fixdeps: keep @.//:arm_code_gen", # fixdeps: keep @.//:arm_disassembler", # fixdeps: keep @.//:core", @.//:mc", # fixdeps: keep @.//:object", @.//:support", @.//:target", # fixdeps: keep @.//:x86_code_gen", # fixdeps: keep @.//:x86_disassembler", # fixdeps: keep @._google_ortools//ortools/constraint_solver:cp", ] + select({ "//tensorflow:linux_ppc64le": [ @.//:powerpc_disassembler", @.***//:powerpc_code_gen", ], "//conditions:default": [ ], }), alwayslink = True, # Contains compiler registration ) This is the op exception thrown by Tensorflow using the import ortools source code compiled by the installation package. /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead. 2019-11-07 12:34:35.603510: F tensorflow/core/framework/op.cc:206] Non-OK-status: RegisterAlreadyLocked(deferred_[i]) status: Invalid argument: Invalid name: int (Did you use CamelCase?); in OpDef: name: "int" input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } attr { name: "int" type: "int" default_value { i: -1 } description: "int" has_minimum: true minimum: -1 } attr { name: "int" type: "int" default_value { s: "" } description: "int" } attr { name: "int" type: "int" description: "int" } attr { name: "int" type: "int" description: "int" } summary: "int" description: "int" is_stateful: true Fatal Python error: Aborted  — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1696?email_source=notifications&email_token=ACUPL3LAZ5VFERELXWY7AU3QSQGEZA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXTEMEA>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3PX5G4GETNWEK4Y563QSQGEZANCNFSM4JKGHMWA .

I tried the 7.4 version, or reported the same error, there is an op called "int"

Are you on ppc64le?
I have not yet managed to build or-tools on this platform
Le ven. 8 nov. 2019 à 05:28, Gave notifications@github.com a écrit :

Can you try with or-tools 7.4 instead of 7.2 ? Laurent Perron | Operations
Research | lperron@google.com | (33) 1 42 68 53 00 Le jeu. 7 nov. 2019 à
13:57, Gave notifications@github.com a écrit :
… <#m_7432511899830138882_>
Hello: I am redeveloping Tensorflow's part on XLA., but when I import
ortools in //tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use
source code support that supports XLA optimization options, but when
running model reasoning A very strange exception occurred. An op named
"int" appeared in the op-registered op. This caused the program to exit
abnormally. However, I didn't find the op macro definition for int in the
entire source file. I canceled me. All source code changes, just import
ortools will reproduce this situation, cancel the import is normal, so I am
sure this problem is caused by the ortools import, but I am not sure how to
solve this problem,and I am not sure if Tensorflow and Ortools are in
conflict Tensorflow version: 1.14.0 ortools version: v7.2 This is a change
to //tensorflow/compiler/xla/service/cpu:cpu_compiler: cc_library( name =
"cpu_compiler", srcs = ["cpu_compiler.cc"], hdrs = ["cpu_compiler.h"], deps
= [ ":compiler_functor", ":buffer_info_util", ":conv_canonicalization",
":cpu_executable", ":cpu_hlo_support_checker", ":cpu_instruction_fusion",
":cpu_layout_assignment", ":cpu_options", ":disassembler",
":dot_op_emitter", ":ir_emission_utils", ":ir_emitter",
":parallel_task_assignment", ":simple_orc_jit", @._google_absl//absl/memory",
@._google_absl//absl/strings", ":target_machine_features", @._google_absl//absl/types:span",
"//tensorflow/compiler/xla/service:copy_insertion",
"//tensorflow/compiler/xla/service:hlo_casting_utils",
"//tensorflow/compiler/xla/service:dump",
"//tensorflow/compiler/xla/service:map_inliner",
"//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter",
"//tensorflow/compiler/xla/service:conditional_to_select",
"//tensorflow/compiler/xla/service:scatter_expander",
"//tensorflow/compiler/xla/service:slice_sinker",
"//tensorflow/compiler/xla:cpu_function_runtime",
"//tensorflow/compiler/xla:literal",
"//tensorflow/compiler/xla:protobuf_util",
"//tensorflow/compiler/xla:status_macros",
"//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types",
"//tensorflow/compiler/xla:util",
"//tensorflow/compiler/xla:xla_data_proto",
"//tensorflow/compiler/xla/service:algebraic_simplifier",
"//tensorflow/compiler/xla/service:batch_dot_simplification",
"//tensorflow/compiler/xla/service:batchnorm_expander",
"//tensorflow/compiler/xla/service:buffer_assignment",
"//tensorflow/compiler/xla/service:buffer_liveness",
"//tensorflow/compiler/xla/service:call_inliner",
"//tensorflow/compiler/xla/service:cholesky_expander",
"//tensorflow/compiler/xla/service:conditional_simplifier",
"//tensorflow/compiler/xla/service:convolution_group_converter",
"//tensorflow/compiler/xla/service:dot_decomposer",
"//tensorflow/compiler/xla/service:dynamic_index_splitter",
"//tensorflow/compiler/xla/service:executable",
"//tensorflow/compiler/xla/service:flatten_call_graph",
"//tensorflow/compiler/xla/service:hlo",
"//tensorflow/compiler/xla/service:hlo_constant_folding",
"//tensorflow/compiler/xla/service:hlo_cse",
"//tensorflow/compiler/xla/service:hlo_dce",
"//tensorflow/compiler/xla/service:hlo_element_type_converter",
"//tensorflow/compiler/xla/service:hlo_ordering",
"//tensorflow/compiler/xla/service:hlo_pass",
"//tensorflow/compiler/xla/service:hlo_pass_pipeline",
"//tensorflow/compiler/xla/service:hlo_proto",
"//tensorflow/compiler/xla/service:hlo_proto_util",
"//tensorflow/compiler/xla/service:hlo_memory_scheduler",
"//tensorflow/compiler/xla/service:hlo_subcomputation_unification",
"//tensorflow/compiler/xla/service:hlo_verifier",
"//tensorflow/compiler/xla/service:indexed_array_analysis",
"//tensorflow/compiler/xla/service:llvm_compiler",
"//tensorflow/compiler/xla/service:reduce_precision_insertion",
"//tensorflow/compiler/xla/service:reshape_mover",
"//tensorflow/compiler/xla/service:rng_expander",
"//tensorflow/compiler/xla/service:sort_simplifier",
"//tensorflow/compiler/xla/service:transpose_folding",
"//tensorflow/compiler/xla/service:triangular_solve_expander",
"//tensorflow/compiler/xla/service:tuple_simplifier",
"//tensorflow/compiler/xla/service:while_loop_constant_sinking",
"//tensorflow/compiler/xla/service:while_loop_invariant_code_motion",
"//tensorflow/compiler/xla/service:while_loop_simplifier",
"//tensorflow/compiler/xla/service:zero_sized_hlo_elimination",
"//tensorflow/compiler/xla/service/llvm_ir:llvm_util", # fixdeps: keep
"//tensorflow/core:lib", # fixdeps: keep
"//tensorflow/core:stream_executor_no_cuda", @.//:aarch64_code_gen", #
fixdeps: keep @.//:aarch64_disassembler", # fixdeps: keep @.//:arm_code_gen",
fixdeps: keep @.//:arm_disassembler", # fixdeps: keep @.//:core",
@.//:mc", # fixdeps: keep @.//:object", @.//:support", @.//:target",
fixdeps: keep @.//:x86_code_gen", # fixdeps: keep @.//:x86_disassembler",
fixdeps: keep @.*_google_ortools//ortools/constraint_solver:cp", ] +
select({ "//tensorflow:linux_ppc64le": [ @.//:powerpc_disassembler", @.**//:powerpc_code_gen",
], "//conditions:default": [ ], }), alwayslink = True, # Contains compiler
registration ) This is the op exception thrown by Tensorflow using the
import ortools source code compiled by the installation package. /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name
tf.logging.set_verbosity is deprecated. Please use
tf.compat.v1.logging.set_verbosity instead. 2019-11-07 12:34:35.603510: F
tensorflow/core/framework/op.cc:206] Non-OK-status:
RegisterAlreadyLocked(deferred[i]) status: Invalid argument: Invalid name:
int (Did you use CamelCase?); in OpDef: name: "int" input_arg { name: "int"
description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int"
type_list_attr: "int" } input_arg { name: "int" description: "int" type:
DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } attr {
name: "int" type: "int" default_value { i: -1 } description: "int"
has_minimum: true minimum: -1 } attr { name: "int" type: "int"
default_value { s: "" } description: "int" } attr { name: "int" type: "int"
description: "int" } attr { name: "int" type: "int" description: "int" }
summary: "int" description: "int" is_stateful: true Fatal Python error:
Aborted — You are receiving this because you are subscribed to this
thread. Reply to this email directly, view it on GitHub <#1696
https://github.com/google/or-tools/issues/1696?email_source=notifications&email_token=ACUPL3LAZ5VFERELXWY7AU3QSQGEZA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXTEMEA>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3PX5G4GETNWEK4Y563QSQGEZANCNFSM4JKGHMWA
.
I tried the 7.4 version, or reported the same error, there is an op called
"int"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1696?email_source=notifications&email_token=ACUPL3N5QP2R63J7BHO3ER3QSTTIVA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDOWHHA#issuecomment-551379868,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3JJCP5IP6I5SU6QGK3QSTTIVANCNFSM4JKGHMWA
.

Are you on ppc64le? I have not yet managed to build or-tools on this platform Le ven. 8 nov. 2019 à 05:28, Gave notifications@github.com a écrit :
…
Can you try with or-tools 7.4 instead of 7.2 ? Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53 00 Le jeu. 7 nov. 2019 à 13:57, Gave @.*** a écrit : … <#m_7432511899830138882_> Hello: I am redeveloping Tensorflow's part on XLA., but when I import ortools in //tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use source code support that supports XLA optimization options, but when running model reasoning A very strange exception occurred. An op named "int" appeared in the op-registered op. This caused the program to exit abnormally. However, I didn't find the op macro definition for int in the entire source file. I canceled me. All source code changes, just import ortools will reproduce this situation, cancel the import is normal, so I am sure this problem is caused by the ortools import, but I am not sure how to solve this problem,and I am not sure if Tensorflow and Ortools are in conflict Tensorflow version: 1.14.0 ortools version: v7.2 This is a change to //tensorflow/compiler/xla/service/cpu:cpu_compiler: cc_library( name = "cpu_compiler", srcs = ["cpu_compiler.cc"], hdrs = ["cpu_compiler.h"], deps = [ ":compiler_functor", ":buffer_info_util", ":conv_canonicalization", ":cpu_executable", ":cpu_hlo_support_checker", ":cpu_instruction_fusion", ":cpu_layout_assignment", ":cpu_options", ":disassembler", ":dot_op_emitter", ":ir_emission_utils", ":ir_emitter", ":parallel_task_assignment", ":simple_orc_jit", @._google_absl//absl/memory", @._google_absl//absl/strings", ":target_machine_features", @._google_absl//absl/types:span", "//tensorflow/compiler/xla/service:copy_insertion", "//tensorflow/compiler/xla/service:hlo_casting_utils", "//tensorflow/compiler/xla/service:dump", "//tensorflow/compiler/xla/service:map_inliner", "//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter", "//tensorflow/compiler/xla/service:conditional_to_select", "//tensorflow/compiler/xla/service:scatter_expander", "//tensorflow/compiler/xla/service:slice_sinker", "//tensorflow/compiler/xla:cpu_function_runtime", "//tensorflow/compiler/xla:literal", "//tensorflow/compiler/xla:protobuf_util", "//tensorflow/compiler/xla:status_macros", "//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto", "//tensorflow/compiler/xla/service:algebraic_simplifier", "//tensorflow/compiler/xla/service:batch_dot_simplification", "//tensorflow/compiler/xla/service:batchnorm_expander", "//tensorflow/compiler/xla/service:buffer_assignment", "//tensorflow/compiler/xla/service:buffer_liveness", "//tensorflow/compiler/xla/service:call_inliner", "//tensorflow/compiler/xla/service:cholesky_expander", "//tensorflow/compiler/xla/service:conditional_simplifier", "//tensorflow/compiler/xla/service:convolution_group_converter", "//tensorflow/compiler/xla/service:dot_decomposer", "//tensorflow/compiler/xla/service:dynamic_index_splitter", "//tensorflow/compiler/xla/service:executable", "//tensorflow/compiler/xla/service:flatten_call_graph", "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service:hlo_constant_folding", "//tensorflow/compiler/xla/service:hlo_cse", "//tensorflow/compiler/xla/service:hlo_dce", "//tensorflow/compiler/xla/service:hlo_element_type_converter", "//tensorflow/compiler/xla/service:hlo_ordering", "//tensorflow/compiler/xla/service:hlo_pass", "//tensorflow/compiler/xla/service:hlo_pass_pipeline", "//tensorflow/compiler/xla/service:hlo_proto", "//tensorflow/compiler/xla/service:hlo_proto_util", "//tensorflow/compiler/xla/service:hlo_memory_scheduler", "//tensorflow/compiler/xla/service:hlo_subcomputation_unification", "//tensorflow/compiler/xla/service:hlo_verifier", "//tensorflow/compiler/xla/service:indexed_array_analysis", "//tensorflow/compiler/xla/service:llvm_compiler", "//tensorflow/compiler/xla/service:reduce_precision_insertion", "//tensorflow/compiler/xla/service:reshape_mover", "//tensorflow/compiler/xla/service:rng_expander", "//tensorflow/compiler/xla/service:sort_simplifier", "//tensorflow/compiler/xla/service:transpose_folding", "//tensorflow/compiler/xla/service:triangular_solve_expander", "//tensorflow/compiler/xla/service:tuple_simplifier", "//tensorflow/compiler/xla/service:while_loop_constant_sinking", "//tensorflow/compiler/xla/service:while_loop_invariant_code_motion", "//tensorflow/compiler/xla/service:while_loop_simplifier", "//tensorflow/compiler/xla/service:zero_sized_hlo_elimination", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", # fixdeps: keep "//tensorflow/core:lib", # fixdeps: keep "//tensorflow/core:stream_executor_no_cuda", @.//:aarch64_code_gen", # fixdeps: keep @.//:aarch64_disassembler", # fixdeps: keep @.//:arm_code_gen", # fixdeps: keep @.//:arm_disassembler", # fixdeps: keep @.//:core", @.//:mc", # fixdeps: keep @.//:object", @.//:support", @.//:target", # fixdeps: keep @.//:x86_code_gen", # fixdeps: keep @.//:x86_disassembler", # fixdeps: keep @._google_ortools//ortools/constraint_solver:cp", ] + select({ "//tensorflow:linux_ppc64le": [ @.//:powerpc_disassembler", @.***//:powerpc_code_gen", ], "//conditions:default": [ ], }), alwayslink = True, # Contains compiler registration ) This is the op exception thrown by Tensorflow using the import ortools source code compiled by the installation package. /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead. 2019-11-07 12:34:35.603510: F tensorflow/core/framework/op.cc:206] Non-OK-status: RegisterAlreadyLocked(deferred[i]) status: Invalid argument: Invalid name: int (Did you use CamelCase?); in OpDef: name: "int" input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } attr { name: "int" type: "int" default_value { i: -1 } description: "int" has_minimum: true minimum: -1 } attr { name: "int" type: "int" default_value { s: "" } description: "int" } attr { name: "int" type: "int" description: "int" } attr { name: "int" type: "int" description: "int" } summary: "int" description: "int" is_stateful: true Fatal Python error: Aborted — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1696 <#1696>?email_source=notifications&email_token=ACUPL3LAZ5VFERELXWY7AU3QSQGEZA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXTEMEA>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3PX5G4GETNWEK4Y563QSQGEZANCNFSM4JKGHMWA . I tried the 7.4 version, or reported the same error, there is an op called "int" — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1696?email_source=notifications&email_token=ACUPL3N5QP2R63J7BHO3ER3QSTTIVA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDOWHHA#issuecomment-551379868>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3JJCP5IP6I5SU6QGK3QSTTIVANCNFSM4JKGHMWA .

I am compiling the source code in AMD64, Ubuntu18.04 environment, I loaded ortools through bazel file, the bazel configuration file is located in Third_party/ortools/workspace.bal
load("//third_party:repo.bzl", "third_party_http_archive")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")

def repo():
    git_repository(
        name = "com_google_protobuf_cc",
        commit = "0974557",  # release v3.8.0
        remote = "https://github.com/protocolbuffers/protobuf.git",
    )

    http_archive(
        name = "com_google_ortools",
        urls = [
            "http://mirror.tensorflow.org/github.com/google/or-tools/archive/v7.2.tar.gz",
            "https://github.com/google/or-tools/archive/v7.2.tar.gz",
        ],
        sha256 = "13a4de5dba1f64e2e490394f8f63fe0a301ee55466ef65fe309ffd5100358ea8",
        strip_prefix = "or-tools-7.2",
        build_file = "//third_party/ortools:BUILD.bazel",
        patch_cmds = [
            "find  -name 'BUILD' -print0 | xargs -0 sed -i 's/com_google_protobuf_cc/com_google_protobuf/g'",
        ],
    )

    http_archive(
        name = "com_github_glog_glog",
        urls = [
            "http://mirror.tensorflow.org/github.com/google/glog/archive/v0.4.0.tar.gz",
            "https://github.com/google/glog/archive/v0.4.0.tar.gz",
        ],
        sha256 = "f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c",
        strip_prefix = "glog-0.4.0",
        #        build_file = "//com_github_glog_glog:BUILD",
        patch_cmds = [
            "mkdir glog_internal && mkdir build && cd build && cmake .. && cp config.h ../glog_internal && cp config.h ../src",
            "sed -i 's/:config_h/src\/config.h/g' bazel/glog.bzl",
        ],
    )

Have you raised this issue with tensorflow? We have no code that uses,
recognizes that tf is present.
Le ven. 8 nov. 2019 à 07:10, Gave notifications@github.com a écrit :

Are you on ppc64le? I have not yet managed to build or-tools on this
platform Le ven. 8 nov. 2019 à 05:28, Gave notifications@github.com a
écrit :
… <#m_4495741251996782725_>
Can you try with or-tools 7.4 instead of 7.2 ? Laurent Perron | Operations
Research | @.*** | (33) 1 42 68 53 00 Le jeu. 7 nov. 2019 à 13:57, Gave
@.*** a écrit : … <#m_7432511899830138882_> Hello: I am redeveloping
Tensorflow's part on XLA., but when I import ortools in
//tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use source code
support that supports XLA optimization options, but when running model
reasoning A very strange exception occurred. An op named "int" appeared in
the op-registered op. This caused the program to exit abnormally. However,
I didn't find the op macro definition for int in the entire source file. I
canceled me. All source code changes, just import ortools will reproduce
this situation, cancel the import is normal, so I am sure this problem is
caused by the ortools import, but I am not sure how to solve this
problem,and I am not sure if Tensorflow and Ortools are in conflict
Tensorflow version: 1.14.0 ortools version: v7.2 This is a change to
//tensorflow/compiler/xla/service/cpu:cpu_compiler: cc_library( name =
"cpu_compiler", srcs = ["cpu_compiler.cc"], hdrs = ["cpu_compiler.h"], deps
= [ ":compiler_functor", ":buffer_info_util", ":conv_canonicalization",
":cpu_executable", ":cpu_hlo_support_checker", ":cpu_instruction_fusion",
":cpu_layout_assignment", ":cpu_options", ":disassembler",
":dot_op_emitter", ":ir_emission_utils", ":ir_emitter",
":parallel_task_assignment", ":simple_orc_jit", @._google_absl//absl/memory",
@._google_absl//absl/strings", ":target_machine_features", @._google_absl//absl/types:span",
"//tensorflow/compiler/xla/service:copy_insertion",
"//tensorflow/compiler/xla/service:hlo_casting_utils",
"//tensorflow/compiler/xla/service:dump",
"//tensorflow/compiler/xla/service:map_inliner",
"//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter",
"//tensorflow/compiler/xla/service:conditional_to_select",
"//tensorflow/compiler/xla/service:scatter_expander",
"//tensorflow/compiler/xla/service:slice_sinker",
"//tensorflow/compiler/xla:cpu_function_runtime",
"//tensorflow/compiler/xla:literal",
"//tensorflow/compiler/xla:protobuf_util",
"//tensorflow/compiler/xla:status_macros",
"//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types",
"//tensorflow/compiler/xla:util",
"//tensorflow/compiler/xla:xla_data_proto",
"//tensorflow/compiler/xla/service:algebraic_simplifier",
"//tensorflow/compiler/xla/service:batch_dot_simplification",
"//tensorflow/compiler/xla/service:batchnorm_expander",
"//tensorflow/compiler/xla/service:buffer_assignment",
"//tensorflow/compiler/xla/service:buffer_liveness",
"//tensorflow/compiler/xla/service:call_inliner",
"//tensorflow/compiler/xla/service:cholesky_expander",
"//tensorflow/compiler/xla/service:conditional_simplifier",
"//tensorflow/compiler/xla/service:convolution_group_converter",
"//tensorflow/compiler/xla/service:dot_decomposer",
"//tensorflow/compiler/xla/service:dynamic_index_splitter",
"//tensorflow/compiler/xla/service:executable",
"//tensorflow/compiler/xla/service:flatten_call_graph",
"//tensorflow/compiler/xla/service:hlo",
"//tensorflow/compiler/xla/service:hlo_constant_folding",
"//tensorflow/compiler/xla/service:hlo_cse",
"//tensorflow/compiler/xla/service:hlo_dce",
"//tensorflow/compiler/xla/service:hlo_element_type_converter",
"//tensorflow/compiler/xla/service:hlo_ordering",
"//tensorflow/compiler/xla/service:hlo_pass",
"//tensorflow/compiler/xla/service:hlo_pass_pipeline",
"//tensorflow/compiler/xla/service:hlo_proto",
"//tensorflow/compiler/xla/service:hlo_proto_util",
"//tensorflow/compiler/xla/service:hlo_memory_scheduler",
"//tensorflow/compiler/xla/service:hlo_subcomputation_unification",
"//tensorflow/compiler/xla/service:hlo_verifier",
"//tensorflow/compiler/xla/service:indexed_array_analysis",
"//tensorflow/compiler/xla/service:llvm_compiler",
"//tensorflow/compiler/xla/service:reduce_precision_insertion",
"//tensorflow/compiler/xla/service:reshape_mover",
"//tensorflow/compiler/xla/service:rng_expander",
"//tensorflow/compiler/xla/service:sort_simplifier",
"//tensorflow/compiler/xla/service:transpose_folding",
"//tensorflow/compiler/xla/service:triangular_solve_expander",
"//tensorflow/compiler/xla/service:tuple_simplifier",
"//tensorflow/compiler/xla/service:while_loop_constant_sinking",
"//tensorflow/compiler/xla/service:while_loop_invariant_code_motion",
"//tensorflow/compiler/xla/service:while_loop_simplifier",
"//tensorflow/compiler/xla/service:zero_sized_hlo_elimination",
"//tensorflow/compiler/xla/service/llvm_ir:llvm_util", # fixdeps: keep
"//tensorflow/core:lib", # fixdeps: keep
"//tensorflow/core:stream_executor_no_cuda", @.//:aarch64_code_gen", #
fixdeps: keep @.//:aarch64_disassembler", # fixdeps: keep @.//:arm_code_gen",
fixdeps: keep @.//:arm_disassembler", # fixdeps: keep @.//:core",
@.//:mc", # fixdeps: keep @.//:object", @.//:support", @.//:target",
fixdeps: keep @.//:x86_code_gen", # fixdeps: keep @.//:x86_disassembler",
fixdeps: keep @.*_google_ortools//ortools/constraint_solver:cp", ] +
select({ "//tensorflow:linux_ppc64le": [ @.//:powerpc_disassembler", @.**//:powerpc_code_gen",
], "//conditions:default": [ ], }), alwayslink = True, # Contains compiler
registration ) This is the op exception thrown by Tensorflow using the
import ortools source code compiled by the installation package.
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is
deprecated; in a future version of numpy, it will be understood as (type,
(1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name
tf.logging.set_verbosity is deprecated. Please use
tf.compat.v1.logging.set_verbosity instead. 2019-11-07 12:34:35.603510: F
tensorflow/core/framework/op.cc:206] Non-OK-status:
RegisterAlreadyLocked(deferred[i]) status: Invalid argument: Invalid
name: int (Did you use CamelCase?); in OpDef: name: "int" input_arg { name:
"int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int"
type_list_attr: "int" } input_arg { name: "int" description: "int" type:
DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } attr {
name: "int" type: "int" default_value { i: -1 } description: "int"
has_minimum: true minimum: -1 } attr { name: "int" type: "int"
default_value { s: "" } description: "int" } attr { name: "int" type: "int"
description: "int" } attr { name: "int" type: "int" description: "int" }
summary: "int" description: "int" is_stateful: true Fatal Python error:
Aborted — You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1696
https://github.com/google/or-tools/issues/1696 <#1696
https://github.com/google/or-tools/issues/1696>?email_source=notifications&email_token=ACUPL3LAZ5VFERELXWY7AU3QSQGEZA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXTEMEA>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3PX5G4GETNWEK4Y563QSQGEZANCNFSM4JKGHMWA
. I tried the 7.4 version, or reported the same error, there is an op
called "int" — You are receiving this because you commented. Reply to this
email directly, view it on GitHub <#1696
https://github.com/google/or-tools/issues/1696?email_source=notifications&email_token=ACUPL3N5QP2R63J7BHO3ER3QSTTIVA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDOWHHA#issuecomment-551379868>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3JJCP5IP6I5SU6QGK3QSTTIVANCNFSM4JKGHMWA
.
I am compiling the source code in AMD64, Ubuntu18.04 environment, I loaded
ortools through bazel file, the bazel configuration file is located in
Third_party/ortools/workspace.bal
load("//third_party:repo.bzl", "third_party_http_archive")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
def repo():
git_repository(

    name = "com_google_protobuf_cc",

    commit = "0974557",  # release v3.8.0

    remote = "https://github.com/protocolbuffers/protobuf.git",

)

http_archive(

    name = "com_google_ortools",

    urls = [

        "http://mirror.tensorflow.org/github.com/google/or-tools/archive/v7.2.tar.gz",

        "https://github.com/google/or-tools/archive/v7.2.tar.gz",

    ],

    sha256 = "13a4de5dba1f64e2e490394f8f63fe0a301ee55466ef65fe309ffd5100358ea8",

    strip_prefix = "or-tools-7.2",

    build_file = "//third_party/ortools:BUILD.bazel",

    patch_cmds = [

        "find  -name 'BUILD' -print0 | xargs -0 sed -i 's/com_google_protobuf_cc/com_google_protobuf/g'",

    ],

)

http_archive(

    name = "com_github_glog_glog",

    urls = [

        "http://mirror.tensorflow.org/github.com/google/glog/archive/v0.4.0.tar.gz",

        "https://github.com/google/glog/archive/v0.4.0.tar.gz",

    ],

    sha256 = "f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c",

    strip_prefix = "glog-0.4.0",

    #        build_file = "//com_github_glog_glog:BUILD",

    patch_cmds = [

        "mkdir glog_internal && mkdir build && cd build && cmake .. && cp config.h ../glog_internal && cp config.h ../src",

        "sed -i 's/:config_h/src\/config.h/g' bazel/glog.bzl",

    ],

)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1696?email_source=notifications&email_token=ACUPL3NKVQ4GGZZ4A45D6LTQST7E7A5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDO23WI#issuecomment-551398873,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3LVWQAN3O3VLCV523TQST7E7ANCNFSM4JKGHMWA
.

Have you raised this issue with tensorflow? We have no code that uses, recognizes that tf is present. Le ven. 8 nov. 2019 à 07:10, Gave notifications@github.com a écrit :
…
Are you on ppc64le? I have not yet managed to build or-tools on this platform Le ven. 8 nov. 2019 à 05:28, Gave @.*** a écrit : … <#m_4495741251996782725_> Can you try with or-tools 7.4 instead of 7.2 ? Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53 00 Le jeu. 7 nov. 2019 à 13:57, Gave @.*** a écrit : … <#m_7432511899830138882_> Hello: I am redeveloping Tensorflow's part on XLA., but when I import ortools in //tensorflow/compiler/xla/service/cpu:cpu_compiler, I can use source code support that supports XLA optimization options, but when running model reasoning A very strange exception occurred. An op named "int" appeared in the op-registered op. This caused the program to exit abnormally. However, I didn't find the op macro definition for int in the entire source file. I canceled me. All source code changes, just import ortools will reproduce this situation, cancel the import is normal, so I am sure this problem is caused by the ortools import, but I am not sure how to solve this problem,and I am not sure if Tensorflow and Ortools are in conflict Tensorflow version: 1.14.0 ortools version: v7.2 This is a change to //tensorflow/compiler/xla/service/cpu:cpu_compiler: cc_library( name = "cpu_compiler", srcs = ["cpu_compiler.cc"], hdrs = ["cpu_compiler.h"], deps = [ ":compiler_functor", ":buffer_info_util", ":conv_canonicalization", ":cpu_executable", ":cpu_hlo_support_checker", ":cpu_instruction_fusion", ":cpu_layout_assignment", ":cpu_options", ":disassembler", ":dot_op_emitter", ":ir_emission_utils", ":ir_emitter", ":parallel_task_assignment", ":simple_orc_jit", @._google_absl//absl/memory", @._google_absl//absl/strings", ":target_machine_features", @._google_absl//absl/types:span", "//tensorflow/compiler/xla/service:copy_insertion", "//tensorflow/compiler/xla/service:hlo_casting_utils", "//tensorflow/compiler/xla/service:dump", "//tensorflow/compiler/xla/service:map_inliner", "//tensorflow/compiler/xla/service:hlo_get_dimension_size_rewriter", "//tensorflow/compiler/xla/service:conditional_to_select", "//tensorflow/compiler/xla/service:scatter_expander", "//tensorflow/compiler/xla/service:slice_sinker", "//tensorflow/compiler/xla:cpu_function_runtime", "//tensorflow/compiler/xla:literal", "//tensorflow/compiler/xla:protobuf_util", "//tensorflow/compiler/xla:status_macros", "//tensorflow/compiler/xla:statusor", "//tensorflow/compiler/xla:types", "//tensorflow/compiler/xla:util", "//tensorflow/compiler/xla:xla_data_proto", "//tensorflow/compiler/xla/service:algebraic_simplifier", "//tensorflow/compiler/xla/service:batch_dot_simplification", "//tensorflow/compiler/xla/service:batchnorm_expander", "//tensorflow/compiler/xla/service:buffer_assignment", "//tensorflow/compiler/xla/service:buffer_liveness", "//tensorflow/compiler/xla/service:call_inliner", "//tensorflow/compiler/xla/service:cholesky_expander", "//tensorflow/compiler/xla/service:conditional_simplifier", "//tensorflow/compiler/xla/service:convolution_group_converter", "//tensorflow/compiler/xla/service:dot_decomposer", "//tensorflow/compiler/xla/service:dynamic_index_splitter", "//tensorflow/compiler/xla/service:executable", "//tensorflow/compiler/xla/service:flatten_call_graph", "//tensorflow/compiler/xla/service:hlo", "//tensorflow/compiler/xla/service:hlo_constant_folding", "//tensorflow/compiler/xla/service:hlo_cse", "//tensorflow/compiler/xla/service:hlo_dce", "//tensorflow/compiler/xla/service:hlo_element_type_converter", "//tensorflow/compiler/xla/service:hlo_ordering", "//tensorflow/compiler/xla/service:hlo_pass", "//tensorflow/compiler/xla/service:hlo_pass_pipeline", "//tensorflow/compiler/xla/service:hlo_proto", "//tensorflow/compiler/xla/service:hlo_proto_util", "//tensorflow/compiler/xla/service:hlo_memory_scheduler", "//tensorflow/compiler/xla/service:hlo_subcomputation_unification", "//tensorflow/compiler/xla/service:hlo_verifier", "//tensorflow/compiler/xla/service:indexed_array_analysis", "//tensorflow/compiler/xla/service:llvm_compiler", "//tensorflow/compiler/xla/service:reduce_precision_insertion", "//tensorflow/compiler/xla/service:reshape_mover", "//tensorflow/compiler/xla/service:rng_expander", "//tensorflow/compiler/xla/service:sort_simplifier", "//tensorflow/compiler/xla/service:transpose_folding", "//tensorflow/compiler/xla/service:triangular_solve_expander", "//tensorflow/compiler/xla/service:tuple_simplifier", "//tensorflow/compiler/xla/service:while_loop_constant_sinking", "//tensorflow/compiler/xla/service:while_loop_invariant_code_motion", "//tensorflow/compiler/xla/service:while_loop_simplifier", "//tensorflow/compiler/xla/service:zero_sized_hlo_elimination", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", # fixdeps: keep "//tensorflow/core:lib", # fixdeps: keep "//tensorflow/core:stream_executor_no_cuda", @.//:aarch64_code_gen", # fixdeps: keep @.//:aarch64_disassembler", # fixdeps: keep @.//:arm_code_gen", # fixdeps: keep @.//:arm_disassembler", # fixdeps: keep @.//:core", @.//:mc", # fixdeps: keep @.//:object", @.//:support", @.//:target", # fixdeps: keep @.//:x86_code_gen", # fixdeps: keep @.//:x86_disassembler", # fixdeps: keep @._google_ortools//ortools/constraint_solver:cp", ] + select({ "//tensorflow:linux_ppc64le": [ @.//:powerpc_disassembler", @.//:powerpc_code_gen", ], "//conditions:default": [ ], }), alwayslink = True, # Contains compiler registration ) This is the op exception thrown by Tensorflow using the import ortools source code compiled by the installation package. /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorflow_core/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_qint32 = np.dtype([("qint32", np.int32, 1)]) /home/ubuntu/.virtualenvs/run/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) WARNING:tensorflow:From load_pb_to_xla_jit.py:18: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead. 2019-11-07 12:34:35.603510: F tensorflow/core/framework/op.cc:206] Non-OK-status: RegisterAlreadyLocked(deferred[i]) status: Invalid argument: Invalid name: int (Did you use CamelCase?); in OpDef: name: "int" input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } input_arg { name: "int" description: "int" type: DT_FLOAT type_attr: "int" number_attr: "int" type_list_attr: "int" } attr { name: "int" type: "int" default_value { i: -1 } description: "int" has_minimum: true minimum: -1 } attr { name: "int" type: "int" default_value { s: "" } description: "int" } attr { name: "int" type: "int" description: "int" } attr { name: "int" type: "int" description: "int" } summary: "int" description: "int" is_stateful: true Fatal Python error: Aborted — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1696 <#1696> <#1696 <#1696>>?email_source=notifications&email_token=ACUPL3LAZ5VFERELXWY7AU3QSQGEZA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXTEMEA>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3PX5G4GETNWEK4Y563QSQGEZANCNFSM4JKGHMWA . I tried the 7.4 version, or reported the same error, there is an op called "int" — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1696 <#1696>?email_source=notifications&email_token=ACUPL3N5QP2R63J7BHO3ER3QSTTIVA5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDOWHHA#issuecomment-551379868>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3JJCP5IP6I5SU6QGK3QSTTIVANCNFSM4JKGHMWA . I am compiling the source code in AMD64, Ubuntu18.04 environment, I loaded ortools through bazel file, the bazel configuration file is located in Third_party/ortools/workspace.bal load("//third_party:repo.bzl", "third_party_http_archive") @._tools//tools/build_defs/repo:http.bzl", "http_archive") @.***_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") def repo(): git_repository( name = "com_google_protobuf_cc", commit = "0974557", # release v3.8.0 remote = "https://github.com/protocolbuffers/protobuf.git", ) http_archive( name = "com_google_ortools", urls = [ "http://mirror.tensorflow.org/github.com/google/or-tools/archive/v7.2.tar.gz", "https://github.com/google/or-tools/archive/v7.2.tar.gz", ], sha256 = "13a4de5dba1f64e2e490394f8f63fe0a301ee55466ef65fe309ffd5100358ea8", strip_prefix = "or-tools-7.2", build_file = "//third_party/ortools:BUILD.bazel", patch_cmds = [ "find -name 'BUILD' -print0 | xargs -0 sed -i 's/com_google_protobuf_cc/com_google_protobuf/g'", ], ) http_archive( name = "com_github_glog_glog", urls = [ "http://mirror.tensorflow.org/github.com/google/glog/archive/v0.4.0.tar.gz", "https://github.com/google/glog/archive/v0.4.0.tar.gz", ], sha256 = "f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c", strip_prefix = "glog-0.4.0", # build_file = "//com_github_glog_glog:BUILD", patch_cmds = [ "mkdir glog_internal && mkdir build && cd build && cmake .. && cp config.h ../glog_internal && cp config.h ../src", "sed -i 's/:config_h/src/config.h/g' bazel/glog.bzl", ], ) — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1696?email_source=notifications&email_token=ACUPL3NKVQ4GGZZ4A45D6LTQST7E7A5CNFSM4JKGHMWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDO23WI#issuecomment-551398873>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3LVWQAN3O3VLCV523TQST7E7ANCNFSM4JKGHMWA .

Ok! thank you

Any news ?
Closing for now.

authors: chenicel lperron


text:
What is the method to obtain the duration of different states in slice？

Slice
binder transaction
Details
Name
binder transaction
Category
binder
Start time
00:00:03.217450385
Absolute Time
2024-04-03T03:51:49.011813574
Duration
91ms 552us 692ns
Sleeping
75ms 387us 154ns (82.34%)
Runnable
16ms 142us 462ns (17.63%)
Running
23us 76ns (0.03%)

This join should give you what you want. It also uses function that might not yet be available in sched.time_in_state module, so you might have to run it directly from https://cs.android.com/android/platform/superproject/main/+/main:external/perfetto/src/trace_processor/perfetto_sql/stdlib/sched/time_in_state.sql
You can also make it a PERFETTO FUNCTION that takes id as an argument.
INCLUDE PERFETTO MODULE sched.time_in_state;
INCLUDE PERFETTO MODULE slices.with_context;

SELECT s.*
FROM sched_time_in_state_for_thread_in_interval(t.ts, t.dur, t.utid) s
JOIN thread_slice t WHERE id = 3;

Why do the same problems still occur？
E:\tools\anaAnaly_myself\perfetto-44.0\python
λ python
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from perfetto.trace_processor import TraceProcessor
tp = TraceProcessor('trace101_1')
tp.query('INCLUDE PERFETTO MODULE sched.time_in_state;')
Traceback (most recent call last):
File "", line 1, in
File "E:\tools\anaAnaly_myself\perfetto-44.0\python\perfetto\trace_processor\api.py", line 284, in query
raise TraceProcessorException(response.error)
perfetto.trace_processor.api.TraceProcessorException: INCLUDE: unknown module 'sched.time_in_state'
tp.query('INCLUDE PERFETTO MODULE sched.states;')
<perfetto.trace_processor.api.TraceProcessor.QueryResultIterator object at 0x00000274BCC45EC8>

source: gharchive/issue

authors: ChenJiahao-A aMayzner

repo: google/perfetto

license_type: permissive

license_source: bigquery


text:
Redirect URL not available from XHR on Chrome with service worker

Have you read the FAQ and checked for duplicate open issues?:
Yes
What version of Shaka Player are you using?:
2.3.5
Can you reproduce the issue with our latest release version?:
Yes
Can you reproduce the issue with the latest code from master?:
Yes
Are you using the demo app or your own custom app?:
Demo app
If custom app, can you reproduce the issue using our demo app?:
What browser and OS are you using?:
Chrome 65 - Ubuntu 17.10 --> Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Firefox 59 - Ubuntu 17.10 --> Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
What are the manifest and license server URIs?:
https://shaka-player-demo.appspot.com/demo/#asset=https://balancer.demo.anevia.com/live/eds/Arte/dash/Arte.mpd;lang=es-ES;build=uncompiled
What did you do?
Load the previous url.
What did you expect to happen?
I expect the same behaviour of Firefox, the manifest redirect and the segments use the redirection.
any.mpd (balancer url) --> HTTP 302 --> edge url
1.mp4 --> edge url
2.mp2 --> edge url
Note: in 2.2.10 it works well --> https://v2-2-10-dot-shaka-player-demo.appspot.com/demo/#asset=https://balancer.demo.anevia.com/live/eds/Arte/dash/Arte.mpd;lang=es-ES
What actually happened?
In Firefox, the manifest redirect and the segments use the redirection.
any.mpd (balancer url) --> HTTP 302 --> edge url
1.mp4 --> edge url
2.mp2 --> edge url
In Chrome, the manifest redirect and the segments don't use the redirection.
Screenshots:

@avelad, I'm unable to reproduce with Shaka Player v2.3.5 and Chrome 65.0.3325.181 on Linux.  I see segments requested from cdn.demo, not balancer.demo.
Can you please check again, and make sure your copy of Chrome is fully updated?

@joeyparrish, I saw that I you have open dev tools with "Disable cache" checked (in network tab) and "Bypass for network" (in Application tab --> Service Workers), It works correctly. Are you tested with these fields unchecked?

Interesting, let me try again.

It seems that the issue only appears when a service worker is used.  This is unexpected, but it explains why v2.3 fails and v2.2 works: we didn't have a service worker in v2.2.

I suspect this will turn into a bug filed against Chrome, but I need to investigate more deeply.  Labelled "bug" for now, and assigned to the v2.5 milestone.

@avelad Is the content you provided still available? I only get 404 errors when I try to request the content you provided in your original issue post.

@vaage , i'm talking with our providers for provide a valid url again.

The previous url is working again.

I used the following code in the JS console to test this:
xhrRedirect = async (url) => {
  const x = new XMLHttpRequest();
  await new Promise((done) => {
    x.onload = done;
    x.open('GET', url, true);
    x.send();
  });
  return x.responseURL;
};

fetchRedirect = async (url) => {
  const r = await fetch(url);
  return r.url;
};

url = 'https://balancer.demo.anevia.com/live/eds/Arte/dash/Arte.mpd';

To test with our service worker, I ran this in the context of the Shaka Player demo.  To test without a service worker, I ran this in the context of about:blank.  To test with service workers generally, I ran this in the context of a separate service worker demo.  For the SW test, I made sure that the "Bypass for network" checkbox in the "Application" tab of the Chrome debugger was unchecked.  Reload after changing this setting to make sure it is in effect.
Here are my results in Chrome 68:

await xhrRedirect(url)
await fetchRedirect(url)

Shaka demo
"https://balancer.demo..."
"https://cdn.demo..."

about:blank
"https://cdn.demo..."
"https://cdn.demo..."

SW demo
"https://cdn.demo..."
"https://cdn.demo..."

So it seems that we are at fault, although I don't yet understand why.  Here's the working SW code for comparison: https://googlechrome.github.io/samples/service-worker/basic/service-worker.js

I found the trigger in our service worker.  Although this effect is triggered by our service worker, it seems that the bad behavior is still in the browser, and it only affects XHR.  When fetch is used, everything seems to work correctly.
The difference between our SW and the SW demo I tried is that ours uses event.respondWith on all requests.  We then asynchronously open the cache and decide if we have a cached copy, and if not, we decide whether or not we should cache one now.  If we should not cache a copy, we just call fetch and pass the results directly through.
The big difference is that the SW demo only calls event.respondWith on specific URLs, and it makes that decision synchronously.
During installation, our SW will store a bunch of demo app assets by relative URLs.  Later, at fetch time, we are presented with an absolute URL to make a decision with.  We can't compare that to the relative URL, so instead we check the cache.  Checking the cache is async, so we have to take responsibility for the request (event.respondWith()) early.
When we take responsibility for all requests, we trigger what I suspect is a Chrome bug: the redirect URL from the fetch() call in the service worker is not propagated through to the XHR in the application.
We could/should stop managing all requests, but this will be tricky.  If we stop using relative URLs, the SW in our demo app will not work in arbitrary locations.  So we would need (I think) to map them to absolute URLs during installation/activation, then be able to look them up synchronously at fetch-time.
I also think it's worth tracking down the bug in Chrome if possible.
For now, as a workaround, you can simply upgrade to v2.4.4.  Starting with v2.4.0, fetch is preferred over XHR.

Because this is working correctly with Fetch in v2.4, I'm going to move this issue to the backlog.  I'd like to fix it, but it's not critical now.

With the commit https://github.com/google/shaka-player/commit/d6720cc7a69791333b4c6b60271ae4e279c10bf1 I see that Fetch is used for fallback, then the issue will appear again in v2.5

I believe we have a change coming soon to add the new functionality to Fetch, as well.

I believe we can fix our demo's service worker to avoid this browser behavior.  I hope to have an update out soon.

authors: avelad joeyparrish vaage

repo: google/shaka-player

license_source: github-api


text:
Audio-only HLS stream gets HLS_COULD_NOT_PARSE_SEGMENT_START_TIME

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.2.0
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from master?
Yes
Are you using the demo app or your own custom app?
Reproducible in both
If custom app, can you reproduce the issue using our demo app?
Yes
What browser and OS are you using?
Chrome / OSX
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
/
What are the manifest and license server URIs?

https://d246c3y55mjokh.cloudfront.net/cksftahaf0006i7t320b26g4s.m3u8
What configuration are you using?  What is the output of player.getConfiguration()?

{
"drm": {
"retryParameters": {
"maxAttempts": 2,
"baseDelay": 1000,
"backoffFactor": 2,
"fuzzFactor": 0.5,
"timeout": 30000,
"stallTimeout": 5000,
"connectionTimeout": 10000
},
"servers": {},
"clearKeys": {},
"advanced": {},
"delayLicenseRequestUntilPlayed": false,
"logLicenseExchange": false,
"updateExpirationTime": 1,
"preferredKeySystems": []
},
"manifest": {
"retryParameters": {
"maxAttempts": 2,
"baseDelay": 1000,
"backoffFactor": 2,
"fuzzFactor": 0.5,
"timeout": 30000,
"stallTimeout": 5000,
"connectionTimeout": 10000
},
"availabilityWindowOverride": null,
"disableAudio": false,
"disableVideo": false,
"disableText": false,
"disableThumbnails": false,
"defaultPresentationDelay": 0,
"dash": {
"clockSyncUri": "",
"ignoreDrmInfo": false,
"disableXlinkProcessing": false,
"xlinkFailGracefully": false,
"ignoreMinBufferTime": false,
"autoCorrectDrift": true,
"initialSegmentLimit": 1000,
"ignoreSuggestedPresentationDelay": false,
"ignoreEmptyAdaptationSet": false,
"ignoreMaxSegmentDuration": false,
"keySystemsByURI": {
"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b": "org.w3.clearkey",
"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed": "com.widevine.alpha",
"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95": "com.microsoft.playready",
"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95": "com.microsoft.playready",
"urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb": "com.adobe.primetime"
}
},
"hls": {
"ignoreTextStreamFailures": false,
"ignoreImageStreamFailures": false,
"useFullSegmentsForStartTime": true
}
},
"streaming": {
"retryParameters": {
"maxAttempts": 2,
"baseDelay": 1000,
"backoffFactor": 2,
"fuzzFactor": 0.5,
"timeout": 30000,
"stallTimeout": 5000,
"connectionTimeout": 10000
},
"rebufferingGoal": 2,
"bufferingGoal": 10,
"bufferBehind": 30,
"ignoreTextStreamFailures": false,
"alwaysStreamText": false,
"startAtSegmentBoundary": false,
"gapDetectionThreshold": 0.1,
"smallGapLimit": 0.5,
"jumpLargeGaps": false,
"durationBackoff": 1,
"forceTransmuxTS": false,
"safeSeekOffset": 5,
"stallEnabled": true,
"stallThreshold": 1,
"stallSkip": 0.1,
"useNativeHlsOnSafari": true,
"inaccurateManifestTolerance": 2,
"lowLatencyMode": false,
"autoLowLatencyMode": false,
"forceHTTPS": false,
"preferNativeHls": false,
"updateIntervalSeconds": 1
},
"offline": {
"usePersistentLicense": true
},
"abr": {
"enabled": true,
"useNetworkInformation": true,
"defaultBandwidthEstimate": 1000000,
"switchInterval": 8,
"bandwidthUpgradeTarget": 0.85,
"bandwidthDowngradeTarget": 0.95,
"restrictions": {
"minWidth": 0,
"maxWidth": null,
"minHeight": 0,
"maxHeight": null,
"minPixels": 0,
"maxPixels": null,
"minFrameRate": 0,
"maxFrameRate": null,
"minBandwidth": 0,
"maxBandwidth": null
}
},
"preferredAudioLanguage": "",
"preferredTextLanguage": "",
"preferredVariantRole": "",
"preferredTextRole": "",
"preferredAudioChannelCount": 2,
"preferredVideoCodecs": [],
"preferredAudioCodecs": [],
"preferForcedSubs": false,
"preferredDecodingAttributes": [],
"restrictions": {
"minWidth": 0,
"maxWidth": null,
"minHeight": 0,
"maxHeight": null,
"minPixels": 0,
"maxPixels": null,
"minFrameRate": 0,
"maxFrameRate": null,
"minBandwidth": 0,
"maxBandwidth": null
},
"playRangeStart": 0,
"playRangeEnd": null
}
What did you do?

Created an audio-only HLS output with AWS MediaConvert in a TS container.
Tried to play it with shaka-player
Gets error 4030.

What did you expect to happen?
Audio playing normally. In hls.js it does work fine.
What actually happened?

Error 4030 on the first chunk.

Your first TS file starts with the wrong sync byte (the first byte is 0x73, but TS packets are expected to start with the byte 0x47). It seems that HLS.js is more tolerant when it comes to malformed content than we are.
Indeed, looking at the HLS.js codebase, they will look forward until they see the sync byte when they parse TS files, and will merely trigger a warning log if the sync word is not at the start of the file. Meanwhile, we error in that situation.
We could also look ahead to see if the sync word is later, I suppose. I don't think that would break anything?

Thanks for looking into that! Just for more context, the stream was generated with AWS MediaConvert with their default audio-only settings: https://docs.aws.amazon.com/mediaconvert/latest/ug/setting-up-audio-only.html

Same problem here. I tried various packaging configurations with AWS MediaConvert, but always results in 4030 error.
Somewhat related: google/ExoPlayer #5039

Yeah, as a tmp fix I switch to HLS.js for the audio only streams I have, but it's not ideal.

authors: happylinks smnmmnn theodab


text:
dashboard/app: suggested #syz fix command is line wrapped

At https://groups.google.com/d/msg/syzkaller-bugs/G_QjjK8sxqc/DanYXyHuEQAJ, syzbot split the suggested #syz fix command onto 2 lines.  Then when a human replied with the same, syzbot used the first line only, resulting in an incorrect fix commit title.

Some context is here:
https://lore.kernel.org/workflows/20191015172447.GA5473@chatter.i7.local/T/#m0d82fd505e8c3e9ef1134101c65cd94f8ff3045c
Short summary:

What syzbot sent MAY be correct (using RFC wording :)) b/c it included flowed/delsp.
syzbot code does not form wrapped lines. It was done my somebody in the middle. Resolving this will most likely involve changing email provider. There seems to be 2 options supported: SendGrid and Mailgun, which are external services so may cause maintenance problems. Also does it require switching to Flexible environment?...

It seems the Google App Engine email API forces format=flowed.  Maybe raise it as an App Engine bug?

AFAICT the mail api is deprecated and unsupported:
https://cloud.google.com/compute/docs/tutorials/sending-mail/

That's the documentation for GCE in general, not for App Engine.  The App Engine email API is documented at https://cloud.google.com/appengine/docs/standard/python/mail/.  I don't see anything that says it is deprecated or unsupported.

FTR internal bug 145193791

This should have been fixed.

authors: dvyukov ebiggers

repo: google/syzkaller


text:
dashboard/app: make FixBisectionAutoClose the default

Currently FixBisectionAutoClose is enabled only for LTS as nobody looks at LTS bugs, but it's disabled for upstream.
I've looked at a dozen of completed fix bisections and there is 100% true positive rate (for successful conclusive bisections).
I think we need to make FixBisectionAutoClose the default (successful conclusive bisections will auto-close the bug).
We will need some adjustment to notifications emails to say that the bug is marked as fixed rather than asking to mark it manually. It will be simpler to do if we remove FixBisectionAutoClose entirely (can re-introduce it later if necessary).
Note: even if we close some bugs incorrectly, these bugs did not happen for 30+ days and can't be reproduced on HEAD, so it's not too bad to close them. And if they will happen again, syzbot will create a new bug.

@ebiggers @hogander-unikie @bulwahn FYI