Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for value_or (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

        mlir::Builder b(expected_ty.getContext());
        Tensor tensor(dtype, TensorShape({static_cast<int64_t>(values.size())}));
        tensor.flat<T>().setValues(values);
    
        auto value_or = ConvertTensor(tensor, &b);
        TF_ASSERT_OK(value_or.status());
        auto attr = value_or.value();
    
        EXPECT_EQ(attr.getShapedType().getElementType(), expected_ty);
    
        Tensor out;
        TF_ASSERT_OK(ConvertToTensor(attr, &out));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

          converted_attrs.push_back(attr);
        } else if (attr.getName() == op.getPaddingAttrName()) {
          auto value_or = ConvertPaddingAttr(op, dnums, rewriter);
          if (failed(value_or)) {
            return failure();
          }
          attr.setValue(*value_or);
          converted_attrs.push_back(attr);
        } else if (attr.getName() == op.getWindowStridesAttrName() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

          quant_specs.default_ranges.second.has_value()) {
        pass_manager.addNestedPass<mlir::func::FuncOp>(
            mlir::TFL::CreateDefaultQuantParamsPass(
                quant_specs.default_ranges.first.value_or(0.0),
                quant_specs.default_ranges.second.value_or(0.0),
                quant_specs.IsSignedInferenceType()));
      }
      pass_manager.addNestedPass<mlir::func::FuncOp>(
          mlir::TFL::CreateQuantizePass(quant_specs));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

      auto op_name = op->getName();
      auto action = target.getOpAction(op_name);
      if (!action.has_value()) {
        return "Unknown";
      }
      switch (action.value_or(ConversionTarget::LegalizationAction::Legal)) {
        case ConversionTarget::LegalizationAction::Legal:
          return "Legal";
        case ConversionTarget::LegalizationAction::Dynamic:
          return "Dynamic";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_tpu_device.cc

                                 : nullptr;
        se::Stream* const dst_device_to_device_stream =
            should_use_substream
                ? device_to_device_master_stream->GetOrCreateSubStream().value_or(
                      nullptr)
                : dst_xla_context->GetDeviceToDeviceStream();
        TF_RET_CHECK(dst_device_to_device_stream != nullptr);
        auto return_substream = gtl::MakeCleanup(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_launch_util.cc

                std::make_unique<xla::PjRtStreamExecutorBuffer>(
                    device_shape, std::move(device_buffer), pjrt_client,
                    pjrt_device,
                    pjrt_device->default_memory_space().value_or(nullptr));
            owned_args->push_back(std::move(pjrt_buffer));
            args->push_back(owned_args->back().get());
          }
        } else {
          if (av_tensor->GetBuffer() == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      // Caller is responsible to call `TF_DeleteBuffer` to release the buffer.
      TF_Buffer* result = TF_NewBuffer();
      const std::string& value_str = *value;
      void* data = malloc(value_str.length());
      value_str.copy(static_cast<char*>(data), value_str.length(), 0);
      result->data = data;
      result->length = value_str.length();
      result->data_deallocator = [](void* data, size_t length) { free(data); };
      return result;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. src/cmd/doc/pkg.go

    					header = true
    				}
    				pkg.valueDoc(value, printed)
    				break
    			}
    		}
    	}
    }
    
    // varsDoc prints all var documentation, if any, including a header.
    // Printed is the valueDoc registry.
    func (pkg *Package) varsDoc(printed map[*ast.GenDecl]bool) {
    	var header bool
    	for _, value := range pkg.doc.Vars {
    		// Constants and variables come in groups, and valueDoc prints
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          Iterator<V> valueItr = Iterators.emptyIterator();
    
          @Override
          public boolean hasNext() {
            return valueItr.hasNext() || valueCollectionItr.hasNext();
          }
    
          @Override
          public V next() {
            if (!valueItr.hasNext()) {
              valueItr = valueCollectionItr.next().iterator();
            }
            return valueItr.next();
          }
        };
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

            K key = (K) elements[i];
    
            Iterator<V> valueItr = valueIterators.get(key);
            if (valueItr == null) {
              valueIterators.put(key, valueItr = sampleValuesIterator());
            }
            entries[i] = mapEntry(key, valueItr.next());
          }
          return multimapGenerator.create((Object[]) entries).keys();
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top