Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 121 for func_0 (0.1 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-func-attr.pbtxt

    # CHECK-LABEL:       func @main() {
    
    # Verify that the NameAttrList is properly turned into reference to functions on import
    # CHECK:    tf.Case
    # CHECK-SAME: branches = [@[[FOO:[a-z0-9]+]], @[[BAR:[a-z0-9]+]]]
    # CHECK-DAG:  func private @[[FOO]]()
    # CHECK-DAG:  func private @[[BAR]]()
    
    node {
      name: "predicate"
      op: "Const"
      attr {
        key: "dtype"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 11 19:14:04 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      func->setAttr(kTfSavedModelExportedNamesAttr,
                    builder.getStrArrayAttr({kSessionInitFuncName}));
      func->setAttr(kTfSavedModelInitializerTypeAttr,
                    builder.getStringAttr(kTfSavedModelInitializerRestoreType));
      func.setVisibility(mlir::func::FuncOp::Visibility::Public);
      auto func_builder = OpBuilder::atBlockBegin(func.addEntryBlock());
      func_builder.create<mlir::func::ReturnOp>(func.getLoc());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

      SmallVector<int64_t, 1> layer_norm_slice_shape_;
      SmallVector<int64_t, 1> layer_norm_size_values_;
    };
    
    LogicalResult ConvertKerasLSTMLayer(mlir::func::FuncOp func_op,
                                        OpBuilder* builder);
    
    LogicalResult ConvertKerasLSTMLayer(mlir::func::FuncOp func_op,
                                        OpBuilder* builder, bool indy);
    
    }  // end namespace TFL
    }  // end namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    bool IsMainOrInitializerFunction(ModuleOp module, func::FuncOp func) {
      if (func.getSymName() ==
              llvm::StringRef(tensorflow::kImportModelDefaultGraphFuncName) ||
          func.getSymName() == kTfQuantSaveFuncName) {
        return true;
      }
    
      for (func::FuncOp init_func :
           tf_saved_model::GetInitializerFunctions(module)) {
        if (func.getSymName() == init_func.getSymName()) {
          return true;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/function-func-attr.pbtxt

    # CHECK-DAG: func private @custom_embedding_matmul{{[0-9]*}}(){{.+}}tf._implements = #tf_type.func<@tensorflow.embedding_matmul, {key1 = 2 : i64, key2 = false}>, tf._original_func_name = "custom_embedding_matmul"}...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 01 20:09:54 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/go/types/subst.go

    		}
    	}
    	return
    }
    
    func (subst *subster) func_(f *Func) *Func {
    	if f != nil {
    		if typ := subst.typ(f.typ); typ != f.typ {
    			return substFunc(f, typ)
    		}
    	}
    	return f
    }
    
    func substFunc(f *Func, typ Type) *Func {
    	copy := *f
    	copy.typ = typ
    	copy.origin = f.Origin()
    	return &copy
    }
    
    func (subst *subster) funcList(in []*Func) (out []*Func, copied bool) {
    	out = in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/guarantee-all-funcs-one-use.mlir

    // CHECK-LABEL: func @f
    // 2 copies of @g
    // CHECK-DAG: func @g{{.*}}
    // CHECK-DAG: func private @g{{.*}}
    // 4 copies of @h
    // CHECK-DAG: func @h{{.*}}
    // CHECK-DAG: func private @h{{.*}}
    // CHECK-DAG: func private @h{{.*}}
    // CHECK-DAG: func private @h{{.*}}
    func.func @f() {
      func.call @g() : () -> ()
      func.call @g() : () -> ()
      func.return
    }
    
    func.func @g() {
      func.call @h() : () -> ()
      func.call @h() : () -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. src/go/types/api_test.go

    		{`package s8; func _() { f(g, h) }; func f[P any](func(int, P), func(P, string)) {}; func g[P any](P, P) {}; func h[P, Q any](P, Q) {}`, `h`, `func(int, string)`},
    		{`package s9; func _() { f(g, h[int]) }; func f[P any](func(int, P), func(P, string)) {}; func g[P any](P, P) {}; func h[P, Q any](P, Q) {}`, `h`, `func[P, Q any](P, Q)`}, // go.dev/issues/60212
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/preserve-entry-func-names.mlir

    // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
    
    func.func @main(%arg0: tensor<10xi32>, %arg1: tensor<10xi32>) -> tensor<10xi32>
    attributes {tf.entry_function = {inputs = "foo,bar", outputs = "Add"}} {
      %graph = tf_executor.graph {
        // This node would be renamed to bar1 [note: if imported from TF graphdef this would not be possible]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 22:54:55 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h

    bool HasTfSavedModelSemantics(ModuleOp module_op);
    
    // Returns the tf_saved_model.global_tensor op that func's arg_index'th argument
    // refers to as a bound input, or null.
    Operation *LookupBoundInput(func::FuncOp func, int arg_index,
                                const SymbolTable &symbol_table);
    
    template <typename T>
    T LookupBoundInputOfType(func::FuncOp func, int arg_index,
                             const SymbolTable &symbol_table) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 03:21:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top