Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for as_str (0.12 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc

      auto module_op = module.get();
      auto serialized_result_fb = ExportRuntimeMetadata(module_op);
      const auto* result = GetRuntimeMetadata(serialized_result_fb.value().c_str());
      const auto* expected = GetRuntimeMetadata(kExpectedFB.c_str());
      ASSERT_TRUE(result != nullptr);
      ASSERT_TRUE(result->subgraph_metadata() != nullptr);
      ASSERT_TRUE(expected->subgraph_metadata() != nullptr);
      Verify(result, expected);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        std::string flops_str;
        std::string mac_str;
        if (ops_count < 10000) {
          flops_str = absl::StrFormat("%ld ", ops_count);
          mac_str = absl::StrFormat("%ld ", ops_count / 2);
        } else if (ops_count < billion) {
          flops_str =
              absl::StrFormat("%.3f M ", static_cast<double>(ops_count) / million);
          mac_str = absl::StrFormat("%.3f M ",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/lite/tfl_quantizer.cc

    }  // namespace
    }  // namespace mlir
    
    int main(int argc, char** argv) {
      llvm::InitLLVM y(argc, argv);
      llvm::cl::ParseCommandLineOptions(argc, argv);
      auto file_or_err = llvm::MemoryBuffer::getFileOrSTDIN(inputFileName.c_str());
      if (std::error_code error = file_or_err.getError()) {
        llvm::errs() << argv[0] << ": could not open input file '" << inputFileName
                     << "': " << error.message() << "\n";
        return 1;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      std::string mat_mul_method =
          absl::StrFormat(kMatMulModuleStr, test_case.mat_mul_method);
      TF_ASSERT_OK_AND_ASSIGN(
          XlaCompiler::CompilationResult result,
          CompileMlirModule(
              mat_mul_method.c_str(),
              ConfigProto::Experimental::MLIR_BRIDGE_ROLLOUT_UNSPECIFIED));
    }
    
    INSTANTIATE_TEST_SUITE_P(
        BatchMatMulTest, BatchMatMulTest,
        ::testing::ValuesIn<MatMulTestCase>({
            {"BatchMatMul"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      return FlatBufferModel::BuildFromFile(model_path.c_str());
    }
    
    std::unique_ptr<FlatBufferModel> ReadSharedWeightsTestModel() {
      auto model_path = tensorflow::io::JoinPath(*g_test_model_dir,
                                                 internal::kModelWithSharedWeights);
      return FlatBufferModel::BuildFromFile(model_path.c_str());
    }
    
    std::unique_ptr<FlatBufferModel> ReadGatherTestModel() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

              return absl::OkStatus();
            });
    
        // Register the corresponding fake op kernel.
        const char* node_name = opdef.name().c_str();
        const char* op_name = opdef.name().c_str();
        const char* device_name = "CPU";
        static auto fake_compute_func = [](void* kernel, TF_OpKernelContext* ctx) {
        };
    
        TF_KernelBuilder* builder =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. cmd/iam.go

    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN parse err: %v", err)
    	}
    	rolePolicy, ok := sys.rolesMap[roleArn]
    	if !ok {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN %s is not defined.", arnStr)
    	}
    	return roleArn, rolePolicy, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. cmd/storage-rest-server.go

    		s.writeErrorResponse(w, errInvalidArgument)
    		return
    	}
    	var verifier *BitrotVerifier
    	if r.Form.Get(storageRESTBitrotAlgo) != "" {
    		hashStr := r.Form.Get(storageRESTBitrotHash)
    		var hash []byte
    		hash, err = hex.DecodeString(hashStr)
    		if err != nil {
    			s.writeErrorResponse(w, err)
    			return
    		}
    		verifier = NewBitrotVerifier(BitrotAlgorithmFromString(r.Form.Get(storageRESTBitrotAlgo)), hash)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. cmd/bucket-replication.go

    		arns = append(arns, rCfg.RoleArn)
    	} else {
    		for _, rule := range rCfg.Rules {
    			arns = append(arns, rule.Destination.String())
    		}
    	}
    	var sameTarget bool
    	for _, arnStr := range arns {
    		arn, err := madmin.ParseARN(arnStr)
    		if err != nil {
    			return sameTarget, errorCodes.ToAPIErrWithErr(ErrBucketRemoteArnInvalid, err)
    		}
    		if arn.Type != madmin.ReplicationService {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

    }
    
    std::unique_ptr<FlatBufferModel> ReadModel(const string& model_name) {
      auto model_path = tensorflow::io::JoinPath(*g_test_model_dir, model_name);
      return FlatBufferModel::BuildFromFile(model_path.c_str());
    }
    
    template <typename T>
    std::vector<T> GetAsVector(const flatbuffers::Vector<T>* vec) {
      return std::vector<T>(vec->begin(), vec->end());
    }
    
    void VerifyQuantizationScale(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
Back to top