Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,088 for expectGet (0.18 sec)

  1. tensorflow/compiler/jit/xla_launch_util_test.cc

          /*num_missing_prefix_ctx_inputs=*/0, inputs, {}, *result,
          /*use_pjrt_tensor_buffer=*/false, execute_outputs, context_.get()));
      // The expected output is indices of non-zero inputs.
      Tensor* expected = CreateHostTensor<int64>(TensorShape({2, 2}), {0, 1, 0, 2});
      test::ExpectTensorEqual<int64>(*expected, *GetOutput(0));
    }
    
    TEST_F(PjRtExecutionUtilTest, PopulateCtxOutputsVariableInputs) {
      XlaOpRegistry::RegisterCompilationKernels();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/debug_test.go

    }
    
    // writeReadExpect writes ss, then reads stdout and stderr until something
    // that matches expectRE appears.  expectRE should not be ""
    func (s *ioState) writeReadExpect(ss, expectRE string) tstring {
    	if *verbose {
    		fmt.Printf("=> %s", ss)
    	}
    	if expectRE == "" {
    		panic("expectRE should not be empty; use .* instead")
    	}
    	_, err := io.WriteString(s.stdin, ss)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      EXPECT_TRUE(result.ok());
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedMlirSuccess), 1);
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedMlirFailure), 0);
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedOldSuccess), 1);
      EXPECT_EQ(compilation_status.Delta(kMlirCombinedOldFailure), 0);
      // Old bridge should never be called at all.
      EXPECT_EQ(compilation_status.Delta(kOldBridgeMlirFilteredFailure), 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

            if (kUseUpdatedHybridSchemeDefault) {
              EXPECT_EQ(quant_tensor->quantization()->scale()->size(), shape[0]);
            } else {
              EXPECT_EQ(quant_tensor->quantization()->scale()->size(), 1);
            }
          } else {
            EXPECT_EQ(quant_tensor->type(), TensorType_FLOAT32);
          }
        }
        EXPECT_EQ(used_tensors.size(), quantized_graph->tensors()->size());
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/device_compiler_test.cc

      // persistent cache.
      std::vector<XlaJitCompilationActivity> activity_history =
          listener_->GetListenerHistory();
      EXPECT_EQ(activity_history.size(), 1);
      EXPECT_EQ(activity_history[0].cluster_name(), fn.name());
      EXPECT_EQ(activity_history[0].compile_count(), 1);
      EXPECT_FALSE(activity_history[0].used_persistent_cache());
    
      listener_->ClearListenerHistory();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/aot/codegen_test.cc

                    const std::vector<string>& want_namespaces) {
        string class_name;
        std::vector<string> namespaces;
        TF_EXPECT_OK(ParseCppClass(cpp_class, &class_name, &namespaces));
        EXPECT_EQ(class_name, want_class_name);
        EXPECT_EQ(namespaces, want_namespaces);
      }
    
      void ExpectFail(const string& cpp_class) {
        string class_name;
        std::vector<string> namespaces;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      root.graph()->AddControlEdge(call, write_op);
    
      std::unique_ptr<Graph> graph;
      Status failure_status = BuildXlaOps(root, fdef_lib, &graph);
      ASSERT_FALSE(failure_status.ok());
      EXPECT_EQ(failure_status.code(), error::INVALID_ARGUMENT);
    }
    
    TEST_F(BuildXlaOpsTest, OnNonXlaDevice) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      FunctionDefLibrary fdef_lib =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/metrics_test.cc

      EXPECT_EQ(SavedModelReadApi("bar").value(), 1);
      SavedModelReadCount("2").IncrementBy(1);
      EXPECT_EQ(SavedModelReadCount("2").value(), 1);
    
      SavedModelReadApi("baz").IncrementBy(1);
      EXPECT_EQ(SavedModelReadApi("baz").value(), 1);
      SavedModelReadCount("2").IncrementBy(1);
      EXPECT_EQ(SavedModelReadCount("2").value(), 2);
    }
    
    TEST(MetricsTest, TestCheckpointRead) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc

      std::optional<CalibrationStatistics> statistics = collector.GetStatistics();
    
      EXPECT_TRUE(statistics.has_value());
      EXPECT_EQ(statistics.value().average_min_max_statistics().min_sum(), -4.0f);
      EXPECT_EQ(statistics.value().average_min_max_statistics().max_sum(), 15.0f);
      EXPECT_EQ(statistics.value().average_min_max_statistics().num_samples(), 2);
    }
    
    TEST(CalibrationStatisticsCollectorTest, ClearDataAndGetResultsMinMax) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 16 04:33:52 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/device_compilation_cache_test.cc

      TF_ASSERT_OK_AND_ASSIGN(auto key, BuildSampleSignature("foo"));
      Cache::Value cache_value = cache->LookupOrCreate(key);
    
      EXPECT_EQ(cache_value.compile_state, DeviceCompileState::kUncompiled);
      EXPECT_EQ(cache_value.request_count, 1);
      EXPECT_EQ(cache_value.compilation_result, nullptr);
      EXPECT_EQ(cache_value.executable, nullptr);
    }
    
    TEST(DeviceCompilationCacheTest, IncrementRequestCountOnLookup) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top