Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for XTimesTwo (0.08 sec)

  1. tensorflow/cc/gradients/functional_grad_test.cc

      *(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)
      TF_ASSERT_OK(scope_.graph()->AddFunctionLibrary(f_lib_proto));
    
      Output x = Placeholder(scope_, DT_FLOAT);
      NameAttrList f;
      f.set_name("XTimesTwo");
      (*f.mutable_attr())["T"].set_type(DT_FLOAT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 26 14:42:24 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

                            {producer, min_consumer, bad_consumers})));
    
        return run_status_;
      }
    
      Status run_status_;
    };
    
    FunctionDef XTimesTwo() {
      const Tensor kTwo = test::AsScalar<int64>(2);
      return FunctionDefHelper::Define(
          // Name
          "XTimesTwo",
          // Args
          {"x: T"},
          // Return values
          {"y: T"},
          // Attr def
          {"T: {float, double, int32, int64}"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      Binary(b, c, builder.opts().WithName("D"));
    
      GraphDef graphdef_in;
      FunctionDefLibrary library_in;
      TF_EXPECT_OK(builder.ToGraphDef(&graphdef_in));
      *library_in.add_function() = test::function::XTimesTwo();
    
      GraphDef graphdef_out = graphdef_in;
      FunctionDefLibrary library_out = library_in;
      TF_EXPECT_OK(Encapsulate(&graphdef_out, &library_out));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

      }
    
      EXPECT_TRUE(
          IsSupportedByNonReplicatedBridge(graph, /*function_library=*/nullptr));
    }
    
    TEST(IsSupportedByReplicatedBridge, ReplicatedGraph) {
      const FunctionDef& fd = test::function::XTimesTwo();
      FunctionDefLibrary flib;
      *flib.add_function() = fd;
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
      Graph graph(flib_def);
      graph.SetConstructionContext(ConstructionContext::kEagerRuntime);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top