- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for set_var_X_data (0.19 sec)
-
tensorflow/compiler/aot/codegen_test_h.golden
// constness of the buffer passed to `set_var_X_data` but the underlying // buffer is not const (and thus the const can be safely const-cast'ed away) // unless `set_var_X_data` is called with a pointer to constant storage. void set_var_myvar_readonly_data(const float* data) { set_arg_data(2, data); } const float* var_myvar_readonly_data() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 01:20:01 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/aot/tests/tfcompile_test.cc
VariableReadonlyComp fn; float x = 23; fn.set_var_x_data(&x); fn.set_thread_pool(&device); fn.Run(); EXPECT_EQ(fn.result0(), 65); EXPECT_EQ(fn.var_x(), 23); } TEST(TFCompileTest, Variable) { Eigen::ThreadPool tp(1); Eigen::ThreadPoolDevice device(&tp, tp.NumThreads()); VariableComp fn; float x = 23; fn.set_var_x_data(&x); fn.set_thread_pool(&device); fn.Run();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 26.4K bytes - Viewed (0) -
tensorflow/compiler/aot/codegen.cc
// constness of the buffer passed to `set_var_X_data` but the underlying // buffer is not const (and thus the const can be safely const-cast'ed away) // unless `set_var_X_data` is called with a pointer to constant storage. {{METHODS_VARIABLE}} private: // Number of buffers for the compiled computation. static constexpr size_t kNumBuffers = {{NUM_BUFFERS}};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 01:20:01 UTC 2024 - 36.8K bytes - Viewed (0)