Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,755 for functor (0.14 sec)

  1. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

      explicit PrepareCompositeFunctionsPass() {}
    
     private:
      // TODO(b/160915525): Consolidate FuncAttr and StringAttr into one.
      void ConvertTFImplements(func::FuncOp func, StringAttr attr);
      void ConvertTFImplementsWithAttributes(func::FuncOp func, FuncAttr attr);
      void ConvertTFAPIImplements(func::FuncOp func, StringAttr attr,
                                  ModuleOp module);
      void runOnOperation() override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    // argument to the `cluster_func` directly feeds into another function call op,
    // then recursively walk the function definition to find the connected
    // XlaSharding op.
    void IdentifyXlaShardingForComputationInputs(
        const llvm::SmallVector<std::string>& logical_device_vec,
        bool infer_from_computation, mlir::tf_device::ClusterFuncOp cluster_func,
        mlir::func::FuncOp func, Builder* builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

    // function name when loading it back.
    inline constexpr StringRef kOriginalStablehloEntryFunctionAttrName =
        "_original_entry_function";
    
    // FunctionCallOpType to be generated as the function call operator when
    // function lifting will happen.
    enum FunctionCallOpType { TFPartitionedCallOp = 0, TFXlaCallModuleOp = 1 };
    
    // Checks if an op is inside a lifted function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. src/syscall/js/js_test.go

    		c1 <- struct{}{}
    		<-c2
    		return nil
    	}), 0)
    
    	<-c1
    	c2 <- struct{}{}
    	// this goroutine is running, but the callback of setTimeout did not return yet, invoke another function now
    	f := js.FuncOf(func(this js.Value, args []js.Value) any {
    		return nil
    	})
    	f.Invoke()
    }
    
    func ExampleFuncOf() {
    	var cb js.Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

     public:
      void runOnOperation() override;
    };
    
    void InputMetricsLoweringPass::runOnOperation() {
      bool has_dynamic_op = false;
      Operation* func_op = getOperation();
    
      func_op->walk([&](Operation* op) {
        auto abstractOp = op->getRegisteredInfo();
        if (!abstractOp) return WalkResult::advance();
    
        if (mlir::mhlo::IsDynamicPadderOp(abstractOp->getTypeID())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

               "& raise them as a function.";
      }
      void runOnOperation() override;
    
      void RaiseTargetSubgraphsForBlock(
          Block& block, OpBuilder& builder, ModuleOp module, bool skip_cpu,
          int& func_count, const TF::SideEffectAnalysis::Info& side_effect_info);
    };
    
    // After raising ops and adding the Func & Call op, call this function
    // to set attributes specific to this pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/runtime/symtab.go

    	// for non-Go code or fully inlined functions.
    	Func *Func
    
    	// Function is the package path-qualified function name of
    	// this call frame. If non-empty, this string uniquely
    	// identifies a single function in the program.
    	// This may be the empty string if not known.
    	// If Func is not nil then Function == Func.Name().
    	Function string
    
    	// File and Line are the file name and line number of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

            read_op.erase();
          }
        }
        // As the other uses are call operations, we simply remove the arguments
        // as the function arguments will be removed below once that function is
        // processed.
        for (auto it : remove_operands) {
          it.first->eraseOperands(it.second);
        }
    
        func.eraseArguments(args_to_erase);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        str.getValue().split(result, ',', /*MaxSplit=*/-1,
                             /*KeepEmpty=*/false);
      }
      return result;
    }
    
    // Sets signature attributes on the function.
    void SetSignature(
        FuncOp func, const tflite::SignatureDefT* signature,
        const std::vector<std::unique_ptr<tflite::TensorT>>& tensors) {
      auto* context = func->getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

    #include "tensorflow/core/platform/errors.h"
    
    namespace tensorflow {
    
    // Converts non func AttrValue proto into an MLIR attribute. Func attribute is
    // exclused in this function because the function might be renamed when the
    // function definition is imported.
    absl::StatusOr<mlir::Attribute> ConvertNonFuncAttributeValue(
        const AttrValue& value, mlir::Builder* builder) {
      switch (value.value_case()) {
        case AttrValue::kI:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top