Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for called_func (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

        // Copy the attributes in the current config except `called_func`.
        for (auto attr : backend_config) {
          if (attr.getName() != kCalledFuncAttrName) {
            new_config.push_back(attr);
          }
        }
    
        auto [it, inserted] =
            called_indexes.insert({called_func, called_indexes.size()});
        if (inserted) {
          function_list.push_back(called_func);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

                                      }}},
                                    {{"c", "t0:y:0"}});
    
      AttrValue true_attribute;
      true_attribute.set_b(true);
      (*called_func.mutable_attr())[kXlaMustCompileAttr] = true_attribute;
      *library.add_function() = called_func;
      TF_ASSERT_OK(root.graph()->AddFunctionLibrary(library));
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), library);
      Output in = ops::Placeholder(root, DT_FLOAT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

        auto call_interface = cast<CallOpInterface>(call_op.getOperation());
        auto called_func =
            dyn_cast_or_null<func::FuncOp>(call_interface.resolveCallable());
    
        if (failed(inlineCall(inliner, call_interface,
                              cast<CallableOpInterface>(called_func.getOperation()),
                              called_func.getCallableRegion(),
                              /* shouldCloneInlinedRegion = */ false))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/visitor.cc

            func::FuncOp called_func =
                symbol_table != nullptr
                    ? symbol_table->lookupNearestSymbolFrom<func::FuncOp>(
                          use.getUser(), use.getSymbolRef())
                    : SymbolTable::lookupNearestSymbolFrom<
                          func::FuncOp>(use.getUser(), use.getSymbolRef());
            if (called_func == nullptr) {
              op->emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/xla_call_module_deserialization.mlir

        //    stablehlo.custom_call @tf.call_tf_function(%arg0, %arg1) {api_version = 2 : i32, has_side_effect = true, tf.backend_config = {called_func = @_tf_func}} : (tensor<?xi32>, tensor<*xi32>) -> ()
        //    return %arg0 : tensor<?xi32>
        //  }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 02 18:38:51 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/xla_call_module_round_trip.mlir

        // CHECK-SAME:  api_version = 2 : i32,
        // CHECK-SAME:  has_side_effect = true,
        // CHECK-SAME:  tf.backend_config = {called_func = @_tf_func}
        // CHECK-SAME: }
        stablehlo.custom_call @tf.call_tf_function(%arg0, %arg1) {api_version = 2 : i32, has_side_effect = true, tf.backend_config = {called_func = @_tf_func}} : (tensor<?xi32>, tensor<*xi32>) -> ()
        // CHECK: call @f
        %arg2 = func.call @f(%arg0) : (tensor<?xi32>) -> (tensor<?xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 02 18:38:51 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.cc

    // string attribute `caller_name` to the TF host callback function's name.
    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    }  // namespace
    
    bool IsTfFuncCustomCall(stablehlo::CustomCallOp op) {
      return op.getCallTargetName() == kTfTargetName;
    }
    
    DictionaryAttr GetTfBackendConfig(stablehlo::CustomCallOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/stablehlo_custom_call.h

    namespace mlir {
    namespace TF {
    
    // Returns whether the custom call op represents a TF function call.
    bool IsTfFuncCustomCall(stablehlo::CustomCallOp op);
    
    // Returns the `called_func` symbol ref attribute in the `tf.backend_config`
    // dictionary attribute.
    //
    // If the op does not represent a TF function call, returns nullptr.
    // Otherwise, if the op does not have `caller_name`, returns failure.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 03:48:35 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/xla_call_module_serialization.mlir

        stablehlo.custom_call @tf.call_tf_function(%arg0, %arg1) {api_version = 2 : i32, has_side_effect = true, tf.backend_config = {called_func = @_tf_func}} : (tensor<?xi32>, tensor<*xi32>) -> ()
        %arg2 = func.call @_stablehlo_f(%arg0) : (tensor<?xi32>) -> (tensor<?xi32>)
        return %arg2 : tensor<?xi32>
      }
    
      // CHECK-LABEL: func @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 03:48:35 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledIndexAttrName = "called_index";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    // Deserialize the StableHLO module embedded in XlaCallModuleOp's module
    // attribute.
    absl::StatusOr<OwningOpRef<ModuleOp>> DeserializeStablehlo(MLIRContext *context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top