- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for is_variable (0.25 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
const std::vector<uint8_t>& buffer, bool is_variable, OpBuilder builder, Location loc, bool use_stablehlo_constant) { if (tensor.sparsity != nullptr) { return BuildSparseConstOp(tensor, buffer, builder, loc); } if (is_variable) { return BuildVariableOp(tensor, builder, loc); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
return LogicalResult::failure(); } if (is_variable) { input.emitOpError() << "unexpected multiple TPUReplicatedInputOp " << "for single argument"; return LogicalResult::failure(); } is_variable = true; } else { is_non_variable = true; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc
}; void ExpectEqualTensor(TensorT* tensor, TensorT* expected_tensor) { const float eps = 1e-7; EXPECT_THAT(expected_tensor, NotNull()); EXPECT_THAT(tensor->is_variable, Eq(expected_tensor->is_variable)); EXPECT_THAT(tensor->shape, Eq(expected_tensor->shape)); EXPECT_THAT(tensor->type, Eq(expected_tensor->type)); const auto quantization_params = tensor->quantization.get();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 73.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py
) return in_placeholder def _create_gather_model(self, input_type, use_variable): class GatherModel(autotrackable.AutoTrackable): """A simple model with a single gather.""" def __init__(self, use_variable): """Initializes a GatherModel. Args: use_variable: If True, creates a variable for weight. """ super(GatherModel, self).__init__()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py
('use_constant_with_int64_input', np.int64, False), ('use_variable_with_int64_input', np.int64, True), ) @test_util.run_v2_only def test_gather_model(self, input_type, use_variable): model = self._create_gather_model(input_type, use_variable) save.save(model, self._input_saved_model_path) rng = np.random.default_rng(seed=42) static_input_shape = [6]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 51.4K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
return true } return st.Sel.Name == "StringData" } // isVariable reports whether x is a variable, possibly with field references. func (p *Package) isVariable(x ast.Expr) bool { switch x := x.(type) { case *ast.Ident: return true case *ast.SelectorExpr: return p.isVariable(x.X) case *ast.IndexExpr: return true } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0)