Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for globals (0.25 sec)

  1. tensorflow/c/c_api.cc

              NodeDef* const node_def = graph_def.add_node();
              *node_def = node->def();
            }
          }
          *graph_def.mutable_library() = graph.flib_def().ToProto();
          if (flags::Global().more_stack_traces.value()) {
            *graph_def.mutable_debug_info() = graph.BuildDebugInfo();
          }
          session->graph->mu.unlock();
          status->status = session->session->Extend(std::move(graph_def));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

        tensorflow::MarkForCompilationPassFlags* flags =
            tensorflow::GetMarkForCompilationPassFlags();
        flags->tf_xla_cpu_global_jit = true;
        flags->tf_xla_min_cluster_size = 1;
      } else {
        optimizer_options->set_global_jit_level(tensorflow::OptimizerOptions::OFF);
      }
    }
    
    unsigned char TF_SetXlaEnableLazyCompilation(unsigned char enable) {
      tensorflow::BuildXlaOpsPassFlags* flags =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler_test.cc

      string actual_string(reinterpret_cast<const char*>(op_buf->data),
                           op_buf->length);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
    
      const OpDef* expected_op_def;
      TF_ASSERT_OK(OpRegistry::Global()->LookUpOpDef("Add", &expected_op_def));
      string expected_serialized;
      expected_op_def->SerializeToString(&expected_serialized);
      EXPECT_EQ(expected_serialized, actual_string);
      TF_DeleteBuffer(g_buf);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_distributed_test.cc

        }
        return tensorflow::errors::Internal("Graph pass runs for more than once!");
      }
    
     private:
      bool first_call_ = true;
    };
    
    // After the graph pass is registered, it takes effect globally and can affect
    // other test cases. Define a static variable to switch it on and off.
    bool GraphErrorInjectionPass::enabled_ = false;
    
    // Test to ensure that a registered graph optimization pass is only executed
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_test.cc

      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
      TFE_ContextOptionsSetDevicePlacementPolicy(opts, global_policy);
      TFE_Context* ctx = TFE_NewContext(opts, status.get());
      if (thread_policy != global_policy) {
        TFE_ContextSetThreadLocalDevicePlacementPolicy(ctx, thread_policy);
      }
      TFE_DeleteContextOptions(opts);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  6. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // loaded, we can only check for availability after all arguments have been
    // parsed.
    //
    // Furthermore, as `INSTANTIATE_TEST_SUITE_P` needs to be at global level and we
    // don't want to have a `std::vector<std::string>` at global level, we use a
    // static pointer to such a vector: we construct it via `SchemeVector()` below
    // and when tests are instantiated we process it using `GetSchemes()`.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      TF_Buffer* buffer = TF_NewBuffer();
    
      TF_GraphGetOpDef(graph, "Add", buffer, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
      const OpDef* expected_op_def;
      TF_ASSERT_OK(OpRegistry::Global()->LookUpOpDef("Add", &expected_op_def));
      string expected_serialized;
      expected_op_def->SerializeToString(&expected_serialized);
      string actual_string(reinterpret_cast<const char*>(buffer->data),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. tensorflow/c/experimental/grappler/grappler.cc

        tsl::Set_TF_Status_from_Status(status, s);
        return nullptr;
      }
      return reinterpret_cast<TF_FunctionLibraryDefinition*>(
          new tensorflow::FunctionLibraryDefinition(
              tensorflow::OpRegistry::Global(), graph_def.library()));
    }
    
    void TF_DeleteFunctionLibraryDefinition(TF_FunctionLibraryDefinition* fn_lib) {
      if (fn_lib == nullptr) return;
      delete reinterpret_cast<tensorflow::FunctionLibraryDefinition*>(fn_lib);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  9. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    #include "tensorflow/core/tfrt/common/global_state.h"
    #include "tensorflow/core/tfrt/common/pjrt_state.h"
    #include "tensorflow/core/tfrt/common/pjrt_util.h"
    #include "tsl/platform/errors.h"
    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top