Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for func_0 (0.1 sec)

  1. test/func.go

    // Test simple functions.
    
    package main
    
    func assertequal(is, shouldbe int, msg string) {
    	if is != shouldbe {
    		print("assertion fail", msg, "\n")
    		panic(1)
    	}
    }
    
    func f1() {
    }
    
    func f2(a int) {
    }
    
    func f3(a, b int) int {
    	return a + b
    }
    
    func f4(a, b int, c float32) int {
    	return (a+b)/2 + int(c)
    }
    
    func f5(a int) int {
    	return 5
    }
    
    func f6(a int) (r int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/empty-input-shapes.pbtxt

    # RUN: tf-mlir-translate -graphdef-to-mlir %s
    
    node {
      name: "input"
      op: "Placeholder"
      attr {
        key: "dtype"
        value {
          type: DT_BOOL
        }
      }
    }
    
    node {
      name: "func0"
      op: "func_name"
      input: "input"
    }
    
    library {
      function {
        signature {
          name: "func_name"
          input_arg {
            name: "arg0"
            type: DT_BOOL
          }
        }
        ret {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 01 22:43:47 UTC 2021
    - 491 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.cc

    #include <string>
    #include <utility>
    
    #include "llvm/ADT/StringExtras.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    
    namespace mlir {
    namespace quant {
    
    constexpr StringRef kTfEntryFunctionAttr = "tf.entry_function";
    
    void AddEntryFunctionInput(StringRef input_name, func::FuncOp func_op) {
      auto entry_func_attr =
          func_op->getAttrOfType<DictionaryAttr>(kTfEntryFunctionAttr);
      if (!entry_func_attr) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/xla_broadcast.mlir

    // CHECK-LABEL: func @move_broadcast
    func.func @move_broadcast(%arg0: tensor<f32>) -> () {
      // CHECK:      %[[ELEM_0:.*]] = "tf.Const"()
      // CHECK:      {ici_weight_distribution_mlir_bridge_marker = true}
      // CHECK-NEXT: %[[SHAPE_0:.*]] = "tf.Const"()
      // CHECK:      {ici_weight_distribution_mlir_bridge_marker = true}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function.h

      ~TFConcreteFunction() override = default;
    
     private:
      TFConcreteFunction(std::unique_ptr<FlatTensorFunction> func,
                         FunctionMetadata metadata);
    
      TFConcreteFunction(const TFConcreteFunction&) = delete;
      TFConcreteFunction& operator=(const TFConcreteFunction&) = delete;
    
      std::unique_ptr<FlatTensorFunction> func_;
      FunctionMetadata metadata_;
    };
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

    };
    
    // Folds tf.IdentityOp and tf.IdentityNOp if op device and the argument devices
    // from the defining ops match.
    void TensorDeviceCopyConversionPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
    
      auto should_fold_op_func = [&func_op](const Value &arg,
                                            const StringAttr &op_device) {
        // In TFRT TPU, tensor transfer is handled specifically by D2H and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

    #define DEBUG_TYPE "quantization-context"
    
    namespace mlir {
    namespace quant {
    
    QuantizeContext::QuantizeContext(func::FuncOp func, const DeviceTarget &spec)
        : func_(func), target_spec_(spec) {
      llvm::DenseMap<Value, int> value_to_state;
      func.walk([&](quantfork::QuantizeRegionOp op) {
        for (int i = 0, e = op.getNumOperands(); i != e; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        // Builder builder(func_op.getContext());
        func_op->setAttr(
            kTfInputShapesAttr,
            ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr));
      }
    }
    
    // Validates func ops. Returns `failure` if the function is invalid.
    LogicalResult ValidateFuncOp(func::FuncOp func_op) {
      auto input_shapes_attr =
          func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc

      const StringSet<> noinline_functions = GetNoinlineFunctionsSet();
    
      func::FuncOp func_op = getOperation();
      Builder builder(&getContext());
    
      // Adds the `tf._noinline = true` attribute to the function if the name
      // matches.
      if (noinline_functions.contains(func_op.getSymName())) {
        func_op->setAttr(kTfNoinlineAttr, builder.getBoolAttr(true));
        LLVM_DEBUG(llvm::dbgs()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 18 02:52:57 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/first-steps.md

    ### Passo 4: defina uma **função de rota**
    
    Esta é a nossa "**função de rota**":
    
    * **rota**: é `/`.
    * **operação**: é `get`.
    * **função**: é a função abaixo do "decorador" (abaixo do `@app.get("/")`).
    
    ```Python hl_lines="7"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Esta é uma função Python.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top