Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for called_func (0.57 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/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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/volume/util/operationexecutor/fakegenerator.go

    // has been caled
    type fakeOGCounter struct {
    	// calledFuncs stores name and count of functions
    	calledFuncs map[string]int
    	opFunc      func() volumetypes.OperationContext
    }
    
    var _ OperationGenerator = &fakeOGCounter{}
    
    // NewFakeOGCounter returns a OperationGenerator
    func NewFakeOGCounter(opFunc func() volumetypes.OperationContext) OperationGenerator {
    	return &fakeOGCounter{
    		calledFuncs: map[string]int{},
    		opFunc:      opFunc,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

          SymbolTable::getSymbolUses(target_func, &module_op.getBodyRegion());
      for (auto& function_use : function_uses.value()) {
        auto call_op = function_use.getUser();
        auto caller_func = call_op->getParentOfType<func::FuncOp>();
        if (!caller_func) return failure();
    
        builder.setInsertionPoint(call_op);
        for (auto [lifted_op, arg_idx] : lifted_op_and_arg_idx) {
          auto new_op = builder.clone(*lifted_op, mapping);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    func.func @test_arg_count_mismatch(%arg0: tensor<i32>) -> () {
      // expected-error @below {{argument count mismatch: 'args' has 1 argument(s), but 'call_func' expects 2}}
      "tf.LegacyCall"(%arg0) {f = @call_func} : (tensor<i32>) -> tensor<i32>
      func.return
    }
    
    func.func @call_func(%arg0: tensor<f32>, %arg1: tensor<f32>) -> tensor<f32> {
      func.return %arg0 : tensor<f32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
Back to top