Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for addFunction (0.17 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/symbolizer/symbolizer.go

    		}
    		symbolizeOneMapping(m, locs, f, addFunction)
    		f.Close()
    	}
    
    	if missingBinaries {
    		ui.PrintErr("Some binary filenames not available. Symbolization may be incomplete.\n" +
    			"Try setting PPROF_BINARY_PATH to the search path for local binaries.")
    	}
    	return nil
    }
    
    func symbolizeOneMapping(m *profile.Mapping, locs []*profile.Location, obj plugin.ObjFile, addFunction func(*profile.Function) *profile.Function) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

        }
    
        def renameSourceFile(SourceFile sourceFile, String name) {
            return new SourceFile(sourceFile.path, name, sourceFile.content)
        }
    
        def addFunction(SourceFile sourceFile) {
            return new SourceFile(sourceFile.path, sourceFile.name, sourceFile.content + """
                // Extra function to ensure library has different size
                int otherFunction() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

          "    }",
          &def));
      return def.SerializeAsString();
    }
    
    // a + a
    string AddFunction() {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          "    signature {"
          "      name: 'AddFunction'"
          "      input_arg {"
          "        name: 'a'"
          "        type: DT_FLOAT"
          "      }"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/compilability_check_util_test.cc

      FunctionDefLibrary flib;
      *flib.add_function() = FunctionDefHelper::Define(
          /*Function*/ kCompilableFunctionName,
          /*Inputs*/ {"n_a:float", "n_b:float"},
          /*Outputs*/ {"n_c:float"},
          /*Attribute*/ {},
          // Node info
          {{{kCompilableFunctionNodeName},
            "Add",
            {"n_a", "n_b"},
            {{"T", DT_FLOAT}}}});
      *flib.add_function() = FunctionDefHelper::Define(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        auto ret1 = ops::_Retval(s.WithOpName("ret1"), arg0, 1);
        std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
        TF_CHECK_OK(s.ToGraph(g.get()));
        FunctionDef *xla_fdef = fdl.add_function();
        TF_CHECK_OK(GraphToFunctionDef(*g, "f1", xla_fdef));
      }
      {
        // Function for While's "body".
        // "arg0" (T=DT_RESOURCE), "arg1" (T=DT_BOOL)
        // "ret0" = "arg0"
        // "ret1" = "arg1"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

          {{{"out"}, "Identity", {"in"}, {{"T", DataType::DT_RESOURCE}}}});
    }
    
    TEST(IsSupportedByNonReplicatedBridge, NonReplicatedGraph) {
      const FunctionDef& fd = PassThroughResource();
      FunctionDefLibrary flib;
      *flib.add_function() = fd;
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
      Graph graph(flib_def);
      graph.SetConstructionContext(ConstructionContext::kEagerRuntime);
      tensorflow::set_tf2_execution(true);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

        PartialTensorShape shape({2});
        node_name_image["identity1"]->AddAttr(
            kXlaInferredShapesAttrName, std::vector<PartialTensorShape>{shape});
    
        FunctionDef *xla_fdef = fdl.add_function();
        TF_CHECK_OK(GraphToFunctionDef(*g, "cluster", xla_fdef));
      }
      FunctionLibraryDefinition fld(OpRegistry::Global(), fdl);
    
      protobuf::Map<string, tensorflow::AttrValue> attrs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      GraphDef graphdef_expected;
    
      *library_expected.add_function() = test::function::XTimesTwo();
      *library_expected.add_function() = FunctionDefHelper::Create(
          "F1", {"a_0_arg:float"}, {"c_0_retval:float"}, {},
          {
              {{"C"}, "UnaryTest", {"a_0_arg"}},
          },
          {{"c_0_retval", "C:o:0"}});
      *library_expected.add_function() = FunctionDefHelper::Create(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  9. tensorflow/cc/gradients/functional_grad_test.cc

        EXPECT_LT(max_error, 1e-3);
      }
    
      Scope scope_;
    };
    
    TEST_F(FunctionGradTest, PartitionedCallGrad) {
      FunctionDefLibrary f_lib_proto;
      *(f_lib_proto.add_function()) = test::function::XTimesTwo();
    
      // Construct a graph:
      //   A = Placeholder[dtype=int32]
      //   B = XTimesTwo[_tpu_replicate="cluster"](A)
      //   C = XTimesTwo[_xla_compile_id="cluster"](A)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 26 14:42:24 UTC 2021
    - 3K bytes
    - Viewed (0)
  10. 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)
Back to top