Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for true (0.13 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

      EXPECT_TRUE(TFE_CancellationManagerRegisterCallback(c_mgr, token2, &callback2,
                                                          "callback2"));
    
      TFE_CancellationToken token3 = TFE_CancellationManagerGetToken(c_mgr);
      EXPECT_TRUE(TFE_CancellationManagerRegisterCallback(c_mgr, token3, &callback1,
                                                          "callback3"));
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  2. tensorflow/c/eager/c_api_unified_experimental_graph.cc

    static bool register_tracing = [] {
      RegisterTracingEngineFactory("graphdef", GraphTracingFactory);
      SetDefaultTracingEngine("graphdef").IgnoreError();
      return true;
    }();
    
    }  // namespace graph
    }  // namespace tracing
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_test.cc

          found_scalar_const = true;
        } else if (IsAddN(n, 2)) {
          EXPECT_FALSE(found_add);
          found_add = true;
        } else {
          ADD_FAILURE() << "Unexpected NodeDef: " << n.DebugString();
        }
      }
      EXPECT_TRUE(found_placeholder);
      EXPECT_TRUE(found_scalar_const);
      EXPECT_TRUE(found_add);
    
      // Add another oper to the graph.
      TF_Operation* neg = Neg(add, graph, s);
    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)
  4. tensorflow/c/eager/c_api_test.cc

        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        const char* device_name = TFE_OpGetDevice(matmul, status);
        ASSERT_TRUE(strstr(device_name, "GPU:0") != nullptr);
    
        TFE_OpSetDevice(matmul, "CPU:0", status);
        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        device_name = TFE_OpGetDevice(matmul, status);
        ASSERT_TRUE(strstr(device_name, "CPU:0") != nullptr);
      }
    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)
  5. tensorflow/c/eager/c_api_test_util.cc

        if (dev_type == device_type) {
          *device_name = dev_name;
          LOG(INFO) << "Found " << device_type << " device " << *device_name;
          TF_DeleteDeviceList(devices);
          return true;
        }
      }
      TF_DeleteDeviceList(devices);
      return false;
    }
    
    tensorflow::ServerDef GetServerDef(const string& job_name, int num_tasks) {
      tensorflow::ServerDef server_def;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  6. tensorflow/c/eager/c_api_experimental.cc

        TF_SetStatus(status, TF_INVALID_ARGUMENT,
                     "op_to_reset should not be nullptr");
      }
    }
    
    void TFE_ContextEnableGraphCollection(TFE_Context* ctx) {
      tensorflow::unwrap(ctx)->SetShouldStoreGraphs(true);
    }
    
    void TFE_ContextDisableGraphCollection(TFE_Context* ctx) {
      tensorflow::unwrap(ctx)->SetShouldStoreGraphs(false);
    }
    
    uint64_t TFE_GetContextId(TFE_Context* ctx) {
      tensorflow::EagerContext* context =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      tf_gcs_filesystem::RamFileBlockCache cache(16, 32, 0, fetcher);
      std::vector<char> out;
    
      // First read.
      EXPECT_TRUE(cache.ValidateAndUpdateFileSignature(filename, 123));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    
      // Second read. Hit cache.
      EXPECT_TRUE(cache.ValidateAndUpdateFileSignature(filename, 123));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/tape/tape_operation.cc

                                       " dimensions which is over the limit of ",
                                       TensorShape::MaxDimensions(), ".");
      }
      TensorShapeProto proto;
      if (num_dims < 0) {
        proto.set_unknown_rank(true);
      } else {
        for (int d = 0; d < num_dims; ++d) {
          proto.add_dim()->set_size(dims[d]);
        }
      }
    
      forward_op_.attrs.Set(attr_name, proto);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  9. tensorflow/c/experimental/gradients/nn_grad_test.cc

                           /*use_function*/ ::testing::Values(true, false)));
    #else
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
                           /*use_function*/ ::testing::Values(true, false)));
    #endif
    }  // namespace
    }  // namespace internal
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    }
    
    TEST_P(ModularFileSystemTest, TestFilesExistsNoFiles) {
      const std::vector<std::string> filenames = {};
      EXPECT_TRUE(env_->FilesExist(filenames, /*status=*/nullptr));
    
      std::vector<Status> statuses;
      EXPECT_TRUE(env_->FilesExist(filenames, &statuses));
      EXPECT_TRUE(statuses.empty());
    }
    
    TEST_P(ModularFileSystemTest, TestStatEmptyFile) {
      const std::string filepath = GetURIForPath("a_file");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top