Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for as_str (0.14 sec)

  1. tensorflow/compiler/mlir/lite/schema/flatbuffer_compatibility_test.cc

      include_directories.push_back(local_include_directory.c_str());
      include_directories.push_back(nullptr);
      if (!parser->Parse(contents.c_str(), include_directories.data(),
                         filename.c_str())) {
        fprintf(stderr, "Failed to parse flatbuffer schema '%s'\n",
                contents.c_str());
        return false;
      }
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 14:28:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

      auto int_attr = mlir::dyn_cast_or_null<IntegerAttr>(attrs.get(attribute));
      if (!int_attr) {
        return func.emitError()
               << attribute.c_str() << " attribute is not set or not an integer";
      }
      builder->Int(attribute.c_str(), int_attr.getInt());
      return success();
    }
    
    LogicalResult ConvertSSDPostProcessFunc::AddFloatAttr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/c/tf_status_helper.cc

      status.ForEachPayload(
          [tf_status](absl::string_view key, const absl::Cord& value) {
            std::string key_str(key);
            std::string value_str(value);
            TF_SetPayload(tf_status, key_str.c_str(), value_str.c_str());
          });
    }
    
    absl::Status StatusFromTF_Status(const TF_Status* tf_status) {
      absl::Status status(StatusCodeFromTSLCode(TF_GetCode(tf_status)),
                          TF_Message(tf_status));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/abi.go

    			// Parse line.
    			if len(parts) != 3 {
    				log.Fatalf(`%s:%d: invalid symabi: syntax is "%s sym abi"`, file, lineNum, parts[0])
    			}
    			sym, abistr := parts[1], parts[2]
    			abi, valid := obj.ParseABI(abistr)
    			if !valid {
    				log.Fatalf(`%s:%d: invalid symabi: unknown abi "%s"`, file, lineNum, abistr)
    			}
    
    			sym = s.canonicalize(sym)
    
    			// Record for later.
    			if parts[0] == "def" {
    				s.defs[sym] = abi
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpSetAttrString(op, "tensor_name", "dummy", 5);
      TFE_OpSetAttrString(op, "send_device", send_device.c_str(),
                          send_device.size());
      TFE_OpSetAttrString(op, "recv_device", recv_device.c_str(),
                          recv_device.size());
      TFE_OpSetAttrInt(op, "send_device_incarnation", send_device_incarnation);
    
      return op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. internal/arn/arn.go

    			"", // account-id is always empty in this implementation
    			arn.ResourceType + "/" + arn.ResourceID,
    		},
    		":",
    	)
    }
    
    // Parse - parses an ARN string into a type.
    func Parse(arnStr string) (arn ARN, err error) {
    	ps := strings.Split(arnStr, ":")
    	if len(ps) != 6 || ps[0] != string(arnPrefixArn) {
    		err = errors.New("invalid ARN string format")
    		return
    	}
    
    	if ps[1] != string(arnPartitionMinio) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/nn_grad.cc

        grad_inputs[0]->Ref();
    
        // Grad for bias
        std::string name = "bias_add_grad";
        TF_RETURN_IF_ERROR(BiasAddGrad(ctx, upstream_grad, &grad_inputs[1],
                                       data_format.c_str(), name.c_str()));
    
        return absl::OkStatus();
      }
      ~BiasAddGradientFunction() override {}
    
     private:
      AttrBuilder forward_attrs_;
    };
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:38:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util_test.cc

    TEST(DumpMlirModuleTest, Valid) {
      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
      setenv("TF_DUMP_GRAPH_PREFIX", testing::TmpDir().c_str(), 1);
      std::string expected_txt_module;
      {
        llvm::raw_string_ostream os(expected_txt_module);
        module_ref->getOperation()->print(os,
                                          mlir::OpPrintingFlags().useLocalScope());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 18 13:40:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

      TFE_DeleteContextOptions(opts);
    
      std::string model_dir = SavedModelPath("VarsAndArithmeticObjectGraph");
    
      TF_SavedModel* saved_model =
          TF_LoadSavedModelWithTags(model_dir.c_str(), ctx, kServeTag, 1, status);
    
      // TODO(bmzhao): Change this to expect TF_OK when loading is implemented.
      // That unblocks writing other tests that require a TF_SavedModel*,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  10. tensorflow/c/kernels/ops/bitcast.cc

        std::ostringstream err;
        err << "Cannot bitcast type " << input_type << " to " << output_type
            << " because one of the type sizes is zero";
        TF_SetStatus(status, TF_INVALID_ARGUMENT, err.str().c_str());
        return;
      }
    
      TF_SetStatus(status, TF_OK, "");
      if (input_type_size < output_type_size) {
        TF_ShapeInferenceContextWithRankAtLeast(ctx, shape, 1, shape, status);
    
        if (TF_GetCode(status) == TF_OK) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top