- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,239 for casts (0.05 sec)
-
guava/src/com/google/common/hash/Striped64.java
transient volatile int busy; /** Package-private default constructor */ Striped64() {} /** CASes the base field. */ final boolean casBase(long cmp, long val) { return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val); } /** CASes the busy field from 0 to 1 to acquire lock. */ final boolean casBusy() { return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jun 07 22:25:23 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
bool IsLastDimEqualToNumElements(Type type1, Type type2) { return (mlir::cast<ShapedType>(type1).getRank() >= 1 && mlir::cast<ShapedType>(type1).getDimSize( mlir::cast<ShapedType>(type1).getRank() - 1) == mlir::cast<ShapedType>(type2).getNumElements()); } bool CanFuseConvOrDepthwiseConvShapes(const ArrayRef<int64_t> filter_shape,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc
#include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" namespace mlir { namespace TFL { namespace tac { namespace { // These are just fake costs. constexpr float kDequantCost = 2.0; constexpr float kQuantCost = 2.0; constexpr float kRequantCost = 2.0; // TODO(renjieliu): Ideally this should consider different kinds of SOCs as // well.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td
"$0.isa<DenseElementsAttr>() && " "$0.cast<DenseElementsAttr>().getNumElements() == 1 && " "(($0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isLargest() && " "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegative()) || " "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegInfinity())">>; def L2NormValidReduceIndex : Constraint<CPred< "L2NormalizeReduceAxis($0, $1.cast<DenseElementsAttr>())">>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 20:31:41 UTC 2024 - 66.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
// This is the argument used to refer to the pass in // the textual format (on the commandline for example). return "quant-replace-cast-hacks-with-tf-xla-ops"; } StringRef getDescription() const final { // This is a brief description of the pass. return "Replace mixed-type Conv and Matmul cast hacks with TF XLA ops."; } void runOnOperation() override; }; // Generates params for the XLA Convolution op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
func.setVisibility(mlir::func::FuncOp::Visibility::Public); auto func_builder = OpBuilder::atBlockBegin(func.addEntryBlock()); func_builder.create<mlir::func::ReturnOp>(func.getLoc()); // In cases where there is a session initializer op with empty initializer, // replace the session initializer with the new one that points to the session // initializer func.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc
if (auto tf_attrs = func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function")) { // TODO(b/184697652): There could be multiple entry functions. Let's // handle such cases if there are any needs for that. if (entry_function != nullptr) { return errors::InvalidArgument( "There should be only one tf.entry_function"); } entry_function = func; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:39:37 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
const bool has_variant_input = llvm::any_of(op->getOperands(), [](Value val) { return val.getType().cast<TensorType>().getElementType().isa<VariantType>(); }); const bool has_variant_output = llvm::any_of(op->getResultTypes(), [](Type t) { return t.cast<TensorType>().getElementType().isa<VariantType>(); }); return has_variant_input || has_variant_output; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
T Time `json:"t"` } func TestTimeMarshalYAML(t *testing.T) { cases := []struct { input Time result string }{ {Time{}, "t: null\n"}, {Date(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05Z\"\n"}, {Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05Z\"\n"}, } for _, c := range cases { input := TimeHolder{c.input} result, err := yaml.Marshal(&input)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go
} func TestMicroTimeMarshalYAML(t *testing.T) { cases := []struct { input MicroTime result string }{ {MicroTime{}, "t: null\n"}, {DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, {DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, } for _, c := range cases { input := MicroTimeHolder{c.input}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 11.1K bytes - Viewed (0)