- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for is_variable (0.18 sec)
-
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
// as tensor names may have changed via MLIR constant folding process. bool ExpectEqualTensor(const Tensor* tensor, const Tensor* expected_tensor) { return (tensor->is_variable() == expected_tensor->is_variable()) && (GetAsVector(tensor->shape()) == GetAsVector(expected_tensor->shape())); } // Finds the match of the quantized tensor from the possible tensors. Each
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K 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/lite/schema/schema_generated.h
fbb_.AddOffset(Tensor::VT_QUANTIZATION, quantization); } void add_is_variable(bool is_variable) { fbb_.AddElement<uint8_t>(Tensor::VT_IS_VARIABLE, static_cast<uint8_t>(is_variable), 0); } void add_sparsity(::flatbuffers::Offset<tflite::SparsityParameters> sparsity) { fbb_.AddOffset(Tensor::VT_SPARSITY, sparsity); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 1M bytes - Viewed (0) -
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/java/source/JavaElementDelegatingTypeSourceWithSmartPointer.kt
internal class JavaElementDelegatingVariableReturnTypeSourceWithSmartPointer<TYPE : PsiType>( override val psiPointer: SmartPsiElementPointer<out PsiVariable>, override val factory: JavaElementSourceFactory, ) : JavaElementDelegatingTypeSourceWithSmartPointer<PsiVariable, TYPE>() { override fun getType(psi: PsiVariable): TYPE { @Suppress("UNCHECKED_CAST") return psi.type as TYPE } }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 14 09:25:26 UTC 2023 - 3.2K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/psiTypeProvider/AbstractAnalysisApiKtTypeByPsiTypeProviderTest.kt
*/ package org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.psiTypeProvider import com.intellij.psi.PsiElement import com.intellij.psi.PsiMethod import com.intellij.psi.PsiType import com.intellij.psi.PsiVariable import org.jetbrains.kotlin.analysis.api.types.KaType import org.jetbrains.kotlin.analysis.test.framework.base.AbstractAnalysisApiBasedTest import org.jetbrains.kotlin.analysis.test.framework.project.structure.KtTestModule
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 29 17:43:55 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py
) return model def _create_gather_model(self, input_type, use_variable) -> module.Module: class GatherModel(module.Module): """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().__init__()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 18.2K bytes - Viewed (0) -
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/java/source/JavaElementSourceWithSmartPointerFactory.kt
return JavaElementTypeSourceWithSmartPointer(smartTypePointerManager.createSmartTypePointer(type), this) } override fun <TYPE : PsiType> createVariableReturnTypeSource(psiVariableSource: JavaElementPsiSource<out PsiVariable>): JavaElementTypeSource<TYPE> { require(psiVariableSource is JavaElementPsiSourceWithSmartPointer)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 14 09:25:26 UTC 2023 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
""" variable_nodes = {} for var_node in filter(_is_variable, graph_def.node): shared_name = str(var_node.attr['shared_name'].s, encoding='utf-8') variable_nodes[shared_name] = var_node for func in graph_def.library.function: for var_node in filter(_is_variable, func.node_def): variable_nodes[shared_name] = var_node return variable_nodes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K 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)